I’m trying to find out what function can split a given string so I come up with one substring beginning with the matched word and the other part. It’s got a bit of a long since I started searching and I feel desperate, well so many functions on ways to split a string I just want your help to figure out what’s the best way to do this splitting.
Share
PHP’s strstr can do this for you simply
Usage is:
If you’re running PHP 5.3 to get the part before the search term you can use the same function as: