Quote Originally Posted by stefin View Post
http://php.flashwebhost.com/stefin/trees.php

Code:
<?php
$garden = array('mango tree', 'apple tree', 'cherry tree', 'Jackfruit tree', 'neem tree', 'mulberry tree', 'coconut tree');


echo '<pre>';
print_r($garden);
echo '</pre>';
echo '<p>The Gardener Is Going To Plant Four More Trees In His $garden array</p>';


$garden[] = 'bamboo tree';
$garden[] = 'rubber tree';
$garden[] = 'teak tree';
$garden[] = 'rose wood';


echo '<pre>';
print_r($garden);
echo '</pre>';

Good code, $garden can be changed to $forest (or $trees), how can some one grow so much trees in a garden

Try the code with foreach.

Code:
foreach ($garden as $plant) {
    echo $plant;
    echo '<br>';
}