note 50579 added to language.constants.predefined

From: Date: Thu, 03 Mar 2005 21:39:48 +0000
Subject: note 50579 added to language.constants.predefined
Groups: php.notes 
Request: Send a blank email to php-notes+get-85891@lists.php.net to get a copy of this message
Note that the magic constants cannot be included in quoted strings. For instance, echo "This is the filename: __FILE__"; will return exactly what's typed above. echo "This is the filename: {__FILE__}"; will also return what's typed above. The only way to get magic constants to parse in strings is to concatenate them into strings: echo "This is the filename: ".__FILE__; ---- Manual Page -- http://www.php.net/manual/en/language.constants.predefined.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50579 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50579&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50579&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50579&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50579&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50579&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50579&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85891) next »