You are here: Re: ${} « PHP Programming Language « IT news, forums, messages
Re: ${}

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация