There's a number of things you can do with variable variables... they're
quite powerful, I like 'em a lot. :)

Anyway, you can do


<?php

$myvar2 = 'stuff';
$othervar = 2;
if (isset($myvar{$othervar}))
        echo $myvar{$othervar};

?>

This would output

<snip>

stuff

</snip>

I think that's what you were asking... You've got to use the { and } around
the variables you're using to make teh variable variable.

--Jason


-- 
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]

Reply via email to