RE: [PHP] how call a variable in a text
| From: | Andrea Giammarchi | Date: | Thu, 22 Oct 2009 09:36:21 +0000 |
| Subject: | RE: [PHP] how call a variable in a text | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-299188@lists.php.net to get a copy of this message | ||
> So no they are not meant to go around. You can use them this way as well.
that has almost the same meaning of
$_ = '_POST';
echo count($$_);
which again, for readability brackets are suggested to improve maintainability
$_ = '_POST';
echo count(${$_});
Regards
_________________________________________________________________
Windows Live: Make it easier for your friends to see what you’re up to on Facebook.
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_2:092009