note 96530 deleted from language.oop5.constants by danbrown

From: Date: Wed, 03 Mar 2010 18:29:03 +0000
Subject: note 96530 deleted from language.oop5.constants by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-166596@lists.php.net to get a copy of this message
Note Submitter: frivera at atom dot com dot gt ---- <?php class Foo { const A = 'xx'; } $match = 'A'; var_dump( Foo::$match ); ?> Fatal error: Access to undeclared static property: Foo::$match How do you get the constant here? ############### don't use the dollar character var_dump( Foo::match ); I'm not sure but I think this is not the place to ask questions, but in the mean time that's the answer

« previous php.notes (#166596) next »