Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

sentence get first second word php laravel

// Example 1
$pizza  = "piece1 piece2 piece3 piece4 piece5 piece6";
$pieces = explode(" ", $pizza);
echo $pieces[0]; // piece1
echo $pieces[1]; // piece2

output:
//piece1
//piece2
 
PREVIOUS NEXT
Tagged: #sentence #word #php #laravel
ADD COMMENT
Topic
Name
5+5 =