Hi Guys ,
I have a vriable contain text with html tags
I want to cut the first 200 character from this variable without counting html tags .
What is the best method to do that ?
I suggest the folwing method :
1- move the text to another variable with strip_tags function .
2- get the first 200 character from new variable and put it in $mirror_var .
3- find the last word in $mirror_var .
4- get the the characters from main variable upto lastword .
But I have a problem in finding last word in $mirror_var
I want to know what is the best method to find last word in variable contain long text ?
OR
if there is another method better than my method
Cheers