I want to make a sub-string, where the $count
only counts letters, not spaces. This is what I have so far:
$string ="vikas tyagi php";
$string = substr($string, 0, 10);
echo $string;
Output:
vikas tyag
Desired output (I don't want to count the spaces):
vikas tyagi
How would I do this?
i want extract string with those condition
1)Base on count letter
2)Without white space
3)String limit also
See Question&Answers more detail:os