note 39275 added to language.constants

From: Date: Thu, 22 Jan 2004 19:44:23 +0000
Subject: note 39275 added to language.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-64032@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/language.constants.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39275 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39275&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39275&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64032) next »