note 11195 deleted from language.constants by nlopess

From: Date: Wed, 24 Mar 2004 14:53:27 +0000
Subject: note 11195 deleted from language.constants by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-67099@lists.php.net to get a copy of this message
Note Submitter: yasuo_ohgaki@hotmial.com ---- "SID" is defined also. It's the same as "session_name()=session_id()" and usufull for managing session using URL. It's mentioned in Session reference, but I thought it would appropriate mention this section, too. "NULL" is also defined and has null type. gettype(null) returns null and is_null($val) returns true for null - PHP4.0.4pl1 or later(?) (I would like to know ALL constants defined by PHP in one place) I also think that the class initilizer limitation intoruduced in PHP4 should be noted here. PHP4 does not allow; define ('C1',1); define ('C2',2); class foo { var $val = C1 | C2; } Following code works.(PHP4.0.4pl1-linux) define ('C1',1); define ('C2',2); class foo { var $val = C1; functin foo() { $this->val = C1 | C2; } } Details are explained http://www.php.net/manual/en/x45905.php (thanks to hholzgra)

« previous php.notes (#67099) next »