17.01.2018, 00:27
Quote:
Well, it would be really pointless to use an array for this case (loop through all the unoccupied vehicles), as the variable is_occupied only serves the purpose of telling you whether the vehicle with ID: i is occupied or not and if so it's value changes to true. This line:
PHP код:
If you wanted to make an array of the unoccupied vehicles (can't find a use for that) then what you propose might be possible. |