note 8300 added to extract
| From: | php at theprojects dot org | Date: | Tue, 05 Sep 2000 05:26:51 +0000 |
| Subject: | note 8300 added to extract | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4160@lists.php.net to get a copy of this message | ||
Another Very Basic Example :
<?
$canadian_provinces = array (
"AB" => "Alberta",
"BC" => "British Columbia",
"MB" => "Manitoba",
"NF" => "Newfoundland",
"NB" => "New Brunswick",
"NS" => "Nova Scotia",
"NT" => "Northwest Territories",
"ON" => "Ontario",
"PE" => "Prince Edward Island",
"QC" => "Quebec",
"SK" => "Saskatchewan",
"YT" => "Yukon Territory"
);
extract ($canadian_provinces);
print "$BC is a great place to live\n";
This will print :
British Columbia is a great place to live.
?>
http://www.php.net/manual/function.extract.php