I am in a situations where i need to instantiate a class with arguments from within an instance of another class. Here is the prototype:
//test.php class test {
class textProperty { public $start; public $end; function textProperty($start, $end) { $this->start = $start; $this->end = $end; } }
$object = new textProperty($start, $end);
don't work?