RE: [PHP] Array_Push but instead of putting it at the end...
| From: | Brandon Orther | Date: | Wed, 13 Dec 2000 19:14:14 +0000 |
| Subject: | RE: [PHP] Array_Push but instead of putting it at the end... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30150@lists.php.net to get a copy of this message | ||
Thanks so much, that is great works like a charm!!!
-----Original Message-----
From: Michael Dearman [mailto:mdearman@inficad.com]
Sent: Wednesday, December 13, 2000 12:03 PM
To: Brandon Orther
Cc: PHP User Group
Subject: Re: [PHP] Array_Push but instead of putting it at the end...
Brandon Orther wrote:
>
> Hello,
>
> I would like to add to an array like array_push, but instead of adding it
to
> the end of the stack, I want to add it to the front and push everything in
> the array back on spot.
>
Well, I happen to have the manual opened up:
II. Array Functions
array_unshift Push one or more elements onto the beginning of array
array_shift Pop an element off the beginning of array
Mike D.