Boofo
06-03-2003, 07:28 PM
Can anyone please tell me if the following code is what I need to take a + sign out of the beginning of a word (i.e. +test)?
$ourlastquery=ereg_replace('[+]','',$ourlastquery);
The + sign only shows up as the first character of the word (so far). I know this will replace them all but I only want to first one replaced.
$ourlastquery=ereg_replace('[+]','',$ourlastquery);
The + sign only shows up as the first character of the word (so far). I know this will replace them all but I only want to first one replaced.