note 9386 added to array_push

From: Date: Tue, 31 Oct 2000 16:42:33 +0000
Subject: note 9386 added to array_push
Groups: php.notes 
Request: Send a blank email to php-notes+get-7212@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. http://www.php.net/manual/function.array-push.php

« previous php.notes (#7212) next »