note 109168 deleted from function.define by danbrown

From: Date: Tue, 26 Jun 2012 13:45:10 +0000
Subject: note 109168 deleted from function.define by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-188814@lists.php.net to get a copy of this message
Note Submitter: divinity76 at gmail dot com ---- warning when using operators like . in constants <?php define('foo.bar','value'); var_dump(defined('foo.bar')); //as expected, returns bool(true) f(foo.bar);//becomes f('foobar'), not 'value', //and generates: E_NOTICE : undefined constant foo, //E_NOTICE: undefined constant bar function f($input){/*code~*/}

« previous php.notes (#188814) next »