Hi,
I just trying to set up the following:
<?php
class myTest {
var $myTestArray;
function myTest($what) {
$this->$myTestArray["hallo"]=$what;
}
function getTest () {
return $this->myTestArray["hallo"];
}
} // class
$myClass = new myTest("Hello World");
echo($myClass->getTest());
?>
but the result is always NULL instead of "Hello World"
Isn't it possible to use key-index arrays within classes
TIA
John