note 39275 deleted from language.constants by nlopess

From: Date: Thu, 22 Jan 2004 21:02:05 +0000
Subject: note 39275 deleted from language.constants by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-64045@lists.php.net to get a copy of this message
Note Submitter: pig.let@inter.nl.net ---- Like concatentating strings, this also works: //some errorcodes define("EBASE", 256); //the base errorcode define("ENOTERM", EBASE + 1); //no searchterm define("ENODISPLAY", EBASE + 2); //nothing to display define("EINVTIME", EBASE + 3); //searchterm is an invalid time echo "ENOTERM = " . ENOTERM . "<br>"; echo "ENODISP = " . ENODISPLAY . "<br>"; echo "EINVTIME = " . EINVTIME . "<br>"; will print: ENOTERM = 257 ENODISPLAY = 258 EINVTIME = 259

« previous php.notes (#64045) next »