extract( ) function converts elements into variables
//int extract ( array arr [, int options [, string prefix]] )
<?
$Wales = "Wales";
$capitalcities = array("England"=>"London","Scotland"=>"Edinburgh", "Wales"=>"Cardiff");
extract($capitalcities);
print $Wales;
?>
Related examples in the same category