Corrected code example:

(too early in the morning to think)

<?php

class ParkingLot {
   var $size;
   var $num_spaces;
   var $spaces = array();
}

class ParkingSpace {
   var $ps_ID;
   var $occupied_by;
   var $st_time;
}

?>

In the above class definition, simply populate the $spaces array with instances of the ParkingSpace class.

~Ted

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to