Re: RE: PHP 4.0 Bug #8106 Updated: array_pop problem when using against an array returned from a class
| From: | Jani Taskinen | Date: | Thu, 07 Dec 2000 08:13:27 +0000 |
| Subject: | Re: RE: PHP 4.0 Bug #8106 Updated: array_pop problem when using against an array returned from a class | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-40313@lists.php.net to get a copy of this message | ||
On Thu, 7 Dec 2000, Andi Gutmans wrote:
>I think array_pop() returns NULL to indicate it has no further elements.
>This is just in case you are saving bool() values in the array. It makes
>more sense.
Of course I didn't think of that situation. :(
So no bug. But documentation should mention this too.
For both array_pop() and array_shift().
--Jani