Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get only the first two word from a string php

$message = preg_split('/[s,]+/', $message, 3)
 
PREVIOUS NEXT
Tagged: #word #string #php
ADD COMMENT
Topic
Name
3+8 =