note 116312 added to language.constants.syntax

From: Date: Wed, 10 Dec 2014 20:48:48 +0000
Subject: note 116312 added to language.constants.syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-201109@lists.php.net to get a copy of this message
The const keyword will not allow anything that may have to be "processed": $color = "red"; const RED = "This is the color $color"; //Doesn't work define(strtoupper($color), "This is the color $color") // Works fine ---- Server IP: 72.52.91.14 Probable Submitter: 177.17.8.190 ---- Manual Page -- http://php.net/manual/en/language.constants.syntax.php Edit -- https://master.php.net/note/edit/116312 Del: integrated -- https://master.php.net/note/delete/116312/integrated Del: useless -- https://master.php.net/note/delete/116312/useless Del: bad code -- https://master.php.net/note/delete/116312/bad+code Del: spam -- https://master.php.net/note/delete/116312/spam Del: non-english -- https://master.php.net/note/delete/116312/non-english Del: in docs -- https://master.php.net/note/delete/116312/in+docs Del: other reasons-- https://master.php.net/note/delete/116312 Reject -- https://master.php.net/note/reject/116312 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201109) next »