RE: [PHP] removing characters from beginning of string

From: Date: Tue, 11 Jul 2000 19:35:15 +0000
Subject: RE: [PHP] removing characters from beginning of string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-5989@lists.php.net to get a copy of this message
> I have the following string and I need to remove the first comma and leave > the rest of the string intact. > > > ,"1" => array("date"=>"7/11/2000", > "author"=>"Jason Bryner" $variable = ereg_replace(',+?','',$variable); I don't use PHP regex enough but if it follows the proper standard, it should remove the first comma it finds and not touch anything else. Sincerely, Craig Vincent

« previous php.general (#5989) next »