RE: [PHP] How do I chop off the beginning of a string?
| From: | Craig Vincent | Date: | Wed, 12 Jul 2000 16:14:22 +0000 |
| Subject: | RE: [PHP] How do I chop off the beginning of a string? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6175@lists.php.net to get a copy of this message | ||
> I have the following strings being read in from a text file, one
> at a time.
> How can I get rid of the beginning quotes and number? So it would end up
> like so:
>
> => array("date"=>......
>
> The strings are as so (the content changes, but still stays the same
> format):
>
> "0" => array("date"=>"7/11/2000",
> "author"=>"Jason Bryner", "next"=>"add")
> ,"2" => array("date"=>"7/12/2000",
> "author"=>"Me", "next"=>"add")
$variable = ereg_replace('^.*(=>)+?','',$variable);