如何計算數組的部分?例如:切片數組和計數
陣:
[name] => Michael
[surname] => Hadfield
[midname] => Olsow
[email] => [email protected]
[phone] => 3342020
我想算陣列領域排除[midname]和[電話] 所以結果應該是3
同時,我想從這個創建數組陣列結果:
[name] => Michael
[surname] => Hadfield
[email] => [email protected]
這可能嗎?
[你有什麼嘗試?](http://www.whathaveyoutried.com/)請參見[ask advice](http://stackoverflow.com/questions/ask-advice)。 – 2013-03-13 01:20:50