Re: Question regarding OO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux