An example of $$variables:
<?php
$smelly = "ditto";
$ditto = "wimpymeat";
$wimpymeat = "smelly";
$foo = "smelly";
for ($i=1;$i<6;$i++) {
$foo = $$foo;
echo $$foo . "\n";
}
?>
Returns:
wimpymeat
smelly
ditto
wimpymeat
smelly
Now, why anyone would want to write a script that returns words like
"wimpymeat" is beyond me.
Sig for a Day
Stephan Ahonen, ICQ 491101
"That's very funny Scotty, now beam down my clothes!"
Come back tomorrow for a different sig!
Backspace a single "s" to reply by email
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]