note 80174 added to function.get-defined-constants

From: Date: Wed, 02 Jan 2008 22:03:05 +0000
Subject: note 80174 added to function.get-defined-constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-134667@lists.php.net to get a copy of this message
Maybe I'm not seeing all the benefits here, but it seems simpler to just transfer the constant to a variable before substitution in a string or heredoc: $myconstant = MYCONSTANT; $mystring = "Here is my constant: $myconstant"; ---- Server IP: 216.235.15.211 Probable Submitter: 208.114.186.65 ---- Manual Page -- http://www.php.net/manual/en/function.get-defined-constants.php Edit -- https://master.php.net/note/edit/80174 Del: integrated -- https://master.php.net/note/delete/80174/integrated Del: useless -- https://master.php.net/note/delete/80174/useless Del: bad code -- https://master.php.net/note/delete/80174/bad+code Del: spam -- https://master.php.net/note/delete/80174/spam Del: non-english -- https://master.php.net/note/delete/80174/non-english Del: in docs -- https://master.php.net/note/delete/80174/in+docs Del: other reasons-- https://master.php.net/note/delete/80174 Reject -- https://master.php.net/note/reject/80174 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#134667) next »