Using Extract On An Associative Array

<?phpphp
$shapes = array('S' => 'Cylinder',
                'N' => 'Rectangle',
                'A' => 'Sphere',
                'O' => 'Sphere',
                'P' => 'Rectangle');extract($shapes);
echo $Apple;
echo "<br />";
echo $Notepad;
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.