http://php.flashwebhost.com/annie/array.php

Code:
<?php

$refrigerators = array();

$refrigerator1 = array();

$refrigerator1[ 'name' ] = 'Whirlpool Ice magic Royal';
$refrigerator1[ 'price' ] = 9500;
$refrigerator1[ 'available' ] = 'yes';
$refrigerator1[ 'rating' ] = '3 Star Energy Rating';
$refrigerator1[ 'supplier' ] = 'Bismi Home Appliance';



$refrigerator2 = array();

$refrigerator2[ 'name' ] = 'Whirlpool Star Single Door';
$refrigerator2[ 'price' ] = 12500;
$refrigerator2[ 'available' ] = 'no';
$refrigerator2[ 'rating' ] = 'Five Star';
$refrigerator2[ 'supplier' ] = 'White Mart ';


$refrigerator3 = array();

$refrigerator3[ 'name' ] = 'Whirlpool Double Door Frost ';
$refrigerator3[ 'price' ] = 25000;
$refrigerator3[ 'available' ] = 'yes';
$refrigerator3[ 'rating' ] = 'Five Star';
$refrigerator3[ 'supplier' ] = 'Nadilath G-Mart ';

$refrigerator4 = array();

$refrigerator4[ 'name' ] = 'Whirlpool Multi Door Royal';
$refrigerator4[ 'price' ] = 35000;
$refrigerator4[ 'available' ] = 'yes';
$refrigerator4[ 'rating' ] = 'Five Star';
$refrigerator4[ 'supplier' ] = 'QRS ';

$refrigerators[] = $refrigerator1;
$refrigerators[] = $refrigerator2;
$refrigerators[] = $refrigerator3;
$refrigerators[] = $refrigerator4;

echo '<h1>Buy Refrigerator Online</h1>';

foreach ($refrigerators as $refrigerator) {
echo '<hr>';
echo '<b> Name: </b> ' . $refrigerator[ 'name' ] . '<br>';
echo '<b> Price: </b> Rs: ' . $refrigerator[ 'price' ] . '/-<br>';
echo '<b> In Stock: </b> ' . $refrigerator['availabile' ] . '<br>';
echo '<b> Rating: </b> ' . $refrigerator[ 'rating' ] . '<br>';
echo '<b> Supplier: </b> ' . $refrigerator[ 'supplier' ] . '<br>';

If ($refrigerator['available'] == 'no') {
echo '<p>This Product is out of stock.</p>';
}

If ($refrigerator['available'] == 'yes') {
echo '<p>Product in stock, buy it soon.</p>';
}

}
echo '<hr>';