ok, i searched the php.net site and found this, which will give me the position of the first '&', but how do i trim the url from the given number on?
here is what i found...
$pos = strpos($mystring, "&");
if ($pos === false) {
// if '&' was not found...
}
else {
// if '&' was found...
}
So can someone please help and fill in the blanks, which are, how fo i use this new found number to trim the string, i looked up trim, ltrim, and rtrim, but they talk about removing spaces - not what i need!
Thnx in advance.
I will continue to search, just in case.