i have a string, and i need to erase everything in it from a match to the end of the string, how can this be done?
i know stristr does the opposite, from beginning to match.
please let me know, thanks!
Have a look at www.php.net/preg_replace
HalfaBee
hmm, ok, i know how to use it. but how would i specify 'end of string' for my second boundary?
i guess a cheap way of doing it is going strpos(), then find the length of the string, and between that and the length replace all characters with "".
$ is eos in a regex