note 36358 added to language.oop
| From: | Micha at rn2 dot php dot net | Date: | Tue, 07 Oct 2003 04:42:17 +0000 |
| Subject: | note 36358 added to language.oop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-57955@lists.php.net to get a copy of this message | ||
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") );
----
Manual Page -- http://www.php.net/manual/en/language.oop.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36358
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36358&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36358&report=yes
Search -- http://master.php.net/manage/user-notes.php