Watering Plants solutions

Watering Plants was solved using PHP by 2 contestants. Solution sizes: average 1796 bytes (shortest: 1624; longest: 1968).