1. é£æ³é åã«å¤ãã»ããããæ¹æ³ - ãã®ï¼ // é åã«å¤ãã»ãããã $hairetu["japan"] = "æ¥æ¬"; $hairetu["china"] = "ä¸å½"; $hairetu["america"] = "ã¢ã¡ãªã«"; 2. é£æ³é åã«å¤ãã»ããããæ¹æ³ - ãã®ï¼ // é£æ³é åã«å¤ãã»ãããã $hairetu = array("japan" => "æ¥æ¬", "china" => "ä¸å½", "america" => "ã¢ã¡ãªã«"); 3. é åæ°åã«ã¼ããã¦å¤ãåãåºãæ¹æ³ foreach ($hairetu as $key => $val) { print "ãã¼ã¯ [" . $key . "] å¤ã¯ [" . $val . "] ã§ãã"; }
{{#tags}}- {{label}}
{{/tags}}