PDA

View Full Version : ereg_replace help


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.

Boofo
06-04-2003, 04:29 AM
Mods, you can close this thread.