Php trim() problem
Posted: Tue Aug 18, 2009 9:07 am
I'm trying to trim the end of a string starting from a specific tag like in the examle listed below and I'm stuck. Any help would be greatly appreciated.
This is the what the text looks like without the trim.
Here is the sample <!--more--> I don't want this to display.
This is what I want to display
Here is the sample
so basically trim everything from <!--more--> to the end.
This is the what the text looks like without the trim.
Here is the sample <!--more--> I don't want this to display.
This is what I want to display
Here is the sample
so basically trim everything from <!--more--> to the end.