Is there a php string function to trim a string after a particular character. I had a look on the php.net site and did a google search but couldn\'t find anything. The only
Maybe something like this:
$string = substr($string, 0, strpos($string, '?'));
Note that this isn't very robust (i.e. no error checking, etc), but it might help you solve your problem.