note 13582 added to language.constants.php

From: Date: Fri, 22 Jun 2001 15:52:48 +0000
Subject: note 13582 added to language.constants.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14562@lists.php.net to get a copy of this message
Constants have the same naming rules as variables (though the docs don't actually say that). So you can't begin a constant name with a number. if you name the constant beginning with a numeral, such as: define ("999CONSTANT", "some value"); whereas define ("CONSTANT999", "some value"); works fine. http://www.php.net/manual/en/language.constants.php

« previous php.notes (#14562) next »