In PHP Version 4.3.6 I am trying get a value from a class member that
is an associative array...
class MyClass
{
$var row;
function MyClass()
{
$this->$row = array("A"=>"Apple", "B"=>"Bob");
echo "One: " . $this->$row["A"] . "<br>";
echo "Two: " . $this->row["A"] . "<br>";
$cache = $this->$row;
echo "Three: " . $cache ["A"] . "<br>";
}
}
But this is the output...
One: Array
Two:
Three: Apple
How can I get at the value of the associative array without making a
local copy first!
Corey