我有以下数组$foo
array(10) { [0] => array(4) { ["merchantId"] => string(5) "12e21" ["programId"] => string(27) "ddd3333" ["networkId"] => int(4) ["clientId"] => int(178) } [1] => array(4) { ["merchantId"] => string(5) "112e1" ["programId"] => string(27) "2vfrdbv1&=10&tmfdpid=csss" ["networkId"] => int(4) ["clientId"] => int(178) } [2] => array(4) { ["merchantId"] => string(5) "112e1" ["programId"] => string(27) "2vfrdbv1&=10&tmfdpid=csss" ["networkId"] => int(4) ["clientId"] => int(178) }
我需要一个clientId数组(仅限)
是否可以只访问clientId来创建一个没有循环的id数组?
就像是:
$foo['clientId']; //which doesn't work