In my code, i have:
$row = "Some text in my string";
now i'm using php and print some word in that variable.
for example: i want 2 words: output will be: "Some text"; (etc with 3 words, 4 words)
but i don't know how to do that in php !
In my code, i have:
$row = "Some text in my string";
now i'm using php and print some word in that variable.
for example: i want 2 words: output will be: "Some text"; (etc with 3 words, 4 words)
but i don't know how to do that in php !
Do it yourself, you will learn some part of PHP
Tips:
explode
array_slice
implode