ID: 10022 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Analyzed Old-Bug Type: Class/Object related Bug Type: Documentation problem Assigned To: Comments: Check the last user entry on this page: http://www.php.net/manual/en/language.constants.php Reclassified as documentation problem. --Jani Previous Comments: --------------------------------------------------------------------------- [2001-03-27 09:54:03] [EMAIL PROTECTED] <?php // // The following produces a warning // error_reporting(15); define("A", 1); define("B", 2); define("C", 3); class Example { var $hash = array(A => "test1", B => "test2", C => "test3"); var $otherHash; function Example() { $this->otherHash = array(A => "test1", B => "test2", C => "test3"); } } $example = new Example; echo "<hr>Trying $example->hash[B]:<br>"; echo $example->hash[B]; echo "<hr>Trying $example->otherHash[B]<br>"; echo $example->otherHash[B]; echo "<hr>Dump of $example->hash<br>"; print_r($example->hash); echo "<hr>Dump of $example->otherHash<br>"; print_r($example->otherHash); ?> --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10022&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]