Hi, recently I just started learning php as a complete beginner, and I wrote some codes that wasn't able to show up on my browser. Please check to see if there is anything wrong with it. This is the exactly what I used.
<?php
$prices= array( ‘Tires’=>100, ‘Oil’=>10, ‘Spark Plugs’=>4 );
foreach ($prices as $key => $value)
echo $key.’=>’.$value.’<br />’;
while( $element = each( $prices ) )
{
echo $element[ ‘key’ ];
echo ‘ - ‘;
echo $element[ ‘value’ ];
echo ‘<br />’;
}
?>