note 24920 added to ref.array

From: Date: Wed, 04 Sep 2002 23:45:56 +0000
Subject: note 24920 added to ref.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-36140@lists.php.net to get a copy of this message
why this gives an error? $var = array( function1(), function2() ); "...parse error, unexpected '(', expecting ')'..." can't we put method calls inside the array ??? -- http://www.php.net/manual/en/ref.array.php http://master.php.net/manage/user-notes.php?action=edit+24920 http://master.php.net/manage/user-notes.php?action=delete+24920 http://master.php.net/manage/user-notes.php?action=reject+24920

« previous php.notes (#36140) next »