Can an object be stored in an array? I have been trying the following
class test {
var $part_no = "ST4332A"; var $quantity = 5;
} // end class
$new_array[1] = new test();
print "$new_array[1]->part_no";
This won't work. Any ideas? Thanx
your object is stored in the array, just use other print command, without quotation marks. something like that:
print($new_array[1]->part_no);
matze