this was my test and i couldn't get any output...maybe somebody can help me ?
<?php
class foo
{
function foo($val,$foo)
{
$this->$$foo[2] = $val;
}
function output()
{
print($this->foo[2]);
}
}
$foo = 'foo';
$val = 'jeeeeeeee';
$f = new foo($val,$foo);
$f->output(); // won't output "jeeeeeeee"
?>