note 120191 added to language.constants.syntax

From: Date: Mon, 21 Nov 2016 11:48:04 +0000
Subject: note 120191 added to language.constants.syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-207250@lists.php.net to get a copy of this message
Nothing is called local constant, all of the them are known by every peace of your script when they appear: function callMe() { define('CON', 'constant appear here'); echo "I am ".CON."\n"; } callMe(); echo "And do you know what, I am also ".CON."\n"; PHP I love you BUT sorry you must be well defined in the future in your ways. ---- Server IP: 72.52.91.14 Probable Submitter: 37.236.112.15 ---- Manual Page -- http://php.net/manual/en/language.constants.syntax.php Edit -- https://master.php.net/note/edit/120191 Del: integrated -- https://master.php.net/note/delete/120191/integrated Del: useless -- https://master.php.net/note/delete/120191/useless Del: bad code -- https://master.php.net/note/delete/120191/bad+code Del: spam -- https://master.php.net/note/delete/120191/spam Del: non-english -- https://master.php.net/note/delete/120191/non-english Del: in docs -- https://master.php.net/note/delete/120191/in+docs Del: other reasons-- https://master.php.net/note/delete/120191 Reject -- https://master.php.net/note/reject/120191 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#207250) next »