I've got a very simple question but I don't get it. I've got a class with a few values looking like this:
class test_one{
private $value1, $value2;
public function __construct($value1,$value2){
$this->$value1 = $value1;
$this->$value2 = $value2;
}
}
Now I want to create twenty objects of this class.
The Code in C# is looking like this:
ref = new test_one[20];
So my question is: how can I create 20 objects of the same class and save them in a reference so I can adress them by their Index?
$this->value1 = $value1;$this->value2 = $value2;