RE: [PHP] how call a variable in a text
| From: | Andrea Giammarchi | Date: | Thu, 22 Oct 2009 09:32:29 +0000 |
| Subject: | RE: [PHP] how call a variable in a text | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-299187@lists.php.net to get a copy of this message | ||
> Erm, the braces are meant to go *around* the variable, not around a bit
> of it:
>
> print "Test: {$var[0][0]}";
unrelated, just another usage of curly brackets
$_ = 'abc';
$i = 0;
echo $_{++$i}; // b
Regards
_________________________________________________________________
Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010