Posted by X l e c t r i c on 09/25/64 11:31
Leif=A0K-Brooks wrote:
"No, it's concatenation
<http://php.net/manual/en/language.operators.string.php> combined with
abuse of a PHP misfeature which turns missing constants into strings. It
works fine with my copy of PHP 4.3.10:
leif@debian:~$ php -v
PHP 4.3.10-15 (cli) (built: May 9 2005 08:54:56) Copyright (c) 1997-2004
The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
leif@debian:~/ecritters/web/html$ php
<?php
$var1 =3D "foo";
${$var1.bar} =3D "great!";
print $foobar;
// Outputs "great!"
?>
great!leif@debian:~$""
I obvoiusly did something wrong. I'll go try it again.
Thanks, Art.
Navigation:
[Reply to this message]
|