note 36358 deleted from language.oop by aidan

From: Date: Sat, 03 Jul 2004 14:51:15 +0000
Subject: note 36358 deleted from language.oop by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72442@lists.php.net to get a copy of this message
Note Submitter: Micha ---- When you want to initialize constant variables, don't add multiline arrays. Ex. This will NOT work var $alt = array( "opt1" => array(), "opt2" => array() ); var $alt["opt1"][0] = "on"; var $alt["opt1"][1] = "off"; var $alt["opt2"][0] = "yes"; var $alt["opt2"][1] = "no"; You need to write all in one line. Ex. This will work var $alt = array( "opt1" => array("on", "off"), "opt2" => array("yes", "no") );

« previous php.notes (#72442) next »