note 9386 deleted from array_push by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Wed, 01 Nov 2000 00:02:48 +0000 |
| Subject: | note 9386 deleted from array_push by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7228@lists.php.net to get a copy of this message | ||
array_push($stack, $val) generates a warning message if $stack is not an array or is not set.
$stack[]=$val makes stack an array automatically if it is not set, but also generates a *fatal
error* if $stack is initialized, but is not an array. be careful.