Posted by Rami Elomaa on 04/25/07 03:46
Man-wai Chang kirjoitti:
>
> What is this called? I would like to read the doc for this trick. It's
> not an operator.
>
Well... It kinda looks like it might be a variable variable call if
there would be something between the curly braces.
Like
$foo = 'hello';
$hello = 'world';
echo ${$foo}; // echos 'world'
Variable variables:
http://fi2.php.net/manual/en/language.variables.variable.php
--
Rami.Elomaa@gmail.com
"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze
Navigation:
[Reply to this message]
|