标签: php arrays
我有一个数组,例如
array ( city => Newyork, amount => 1000 );
如何获得如下输出?
Newyork => 1000
答案 0 :(得分:3)
$a=array( 'city' => 'Newyork', 'amount' => '1000' ); echo $a['city'] . ' => ' . $a['amount'];