Perl
%PREF = (
'kyoto' => {
'NAME' => '京都',
'JINKOU' => '200万',
'MEISAN' => '豆腐',
},
'osaka' => {
'NAME' => '大阪',
'JINKOU' => '500万',
'MEISAN' => 'たこやき',
},
);
$PREF{'kyoto'}{'NAME'} = 京都
PHP
$PREF = array(
"kyoto" => array(
"NAME" => "京都",
"JINKOU" => "200万",
"MEISAN" => "豆腐",
),
"osaka" => array(
"NAME" => "大阪",
"JINKOU" => "500万",
"MEISAN" => "たこやき",
),
);
$PREF["kyoto"]["NAME"] = 京都
Reference
PHPマニュアル - 配列http://www.php.net/manual/ja/language.types.array.php
via
PHP-users ML - 13954http://ns1.php.gr.jp/pipermail/php-users/2003-March/014486.html
PHP-users ML - 13956
http://ns1.php.gr.jp/pipermail/php-users/2003-March/014488.html