Recount array
| From: | Jason Bryner | Date: | Tue, 11 Jul 2000 21:43:00 +0000 |
| Subject: | Recount array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-6019@lists.php.net to get a copy of this message | ||
I just want to thank every one on this list who has helped so far. It's
really appreciated.
Now I have another problem to work through. I have a text file that stores
an array. The array has elements added and subtracted. Below is a sample
of the text file. How can I "recount" the array to be 0, 1, 2 ?
<?
$news = array (
"0" => array("date"=>"7/11/2000",
"author"=>"Jason Bryner", "next"=>"add")
,"2" => array("date"=>"7/13/2000",
"author"=>"Jason Bryner", "next"=>"add")
,"3" => array("date"=>"7/10/2000",
"author"=>"Jason Bryner", "next"=>"add")
)
?>
Again, thanks for all your help so far, and thanks if advance for help on
this.
Jason Bryner
--
Focus Design
http://www.focusdesigngroup.com