RE: [PHP] removing characters from beginning of string
| From: | Maciek Uhlig | Date: | Tue, 11 Jul 2000 19:51:43 +0000 |
| Subject: | RE: [PHP] removing characters from beginning of string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5993@lists.php.net to get a copy of this message | ||
<?
$yourstring=",\"1\" => array(\"date\"=>\"7/11/2000\",
\"author\"=>\"Jason
Bryner\"";
$yourstring=substr($yourstring,1);
echo $yourstring;
?>
results in:
"1" => array("date"=>"7/11/2000",
"author"=>"Jason Bryner"
which is what you want.
Maciek
> -----Original Message-----
> From: Jason Bryner [mailto:jason@focusdesigngroup.com]
> Sent: Tuesday, July 11, 2000 9:27 PM
> To: PHP General
> Subject: [PHP] removing characters from beginning of string
>
>
> 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"
>
>
> Any ideas?
>