PHP中使用array来创建一个数组:array( key=>value , key=>value …… )
用方括号的语法来修改数组:$arr[] = value
例如:
$arr = array(3,5,7,9);
$res = array(“a” => “视频”, “b”=>”教2程”, “c” => “六”);
$arr['a'] = “老温”;
$arr['c'] = “试题”;
PHP中使用array来创建一个数组:array( key=>value , key=>value …… )
用方括号的语法来修改数组:$arr[] = value
例如:
$arr = array(3,5,7,9);
$res = array(“a” => “视频”, “b”=>”教2程”, “c” => “六”);
$arr['a'] = “老温”;
$arr['c'] = “试题”;