[BNM] 2 questions of ASP/VB
David Elliott
the1gadget at gmail.com
Tue Apr 18 16:26:52 BST 2006
Hi Jonathan
On 4/18/06, Jonathan Hirsch <jon at hirschworks.com> wrote:
> >> Just wondering, how would you do this in PHP ?
>
> $$var
>
> as in, say:
>
> <?php
> $name = "Fred Bloggs";
> $var = "name";
> echo $$var;
> ?>
>
> outputs:
>
> Fred Bloggs
>
> HTH,
Looks just like a reply of mine earlier where I said.
But variable variables no well not in the same way PHP does.
<?php
$a = 'hello';
$$a = 'world';
echo "$a ${$a}";
?>
--
David
More information about the BNMList mailing list
BNMList is hosted by Screenlists, a Screen-Play.net service