note 52240 added to language.variables

From: Date: Mon, 25 Apr 2005 23:01:53 +0000
Subject: note 52240 added to language.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-88539@lists.php.net to get a copy of this message
When constructing strings from text and variables you can use curly braces to "demarcate" variables from any surrounding text where, for whatever reason, you cannot use a space eg: $str="Hi my name is ${bold}$name bla-bla"; which AFAIK is the same as $str="Hi my name is {$bold}$name bla-bla"; zzapper ---- Manual Page -- http://www.php.net/manual/en/language.variables.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52240 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52240&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52240&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52240&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52240&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52240&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52240&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88539) next »