多的foreach語句,你能告訴我怎麼寫foreach循環用於以下arrray:需要幫助的PHP
Array
(
[0] => Array
(
[id] => 1
[sector] => Agriculture
[experience] => 2
[first_name] => ranjith
[second_name] =>
[position] =>
[telephone] => 442254322
[mobile] => 999999999
[email] => [email protected]
[education] => Phd
[resume] =>
[photograph] =>
[comments] => goodsdsdfdfd
[status] => 1
)
[1] => Array
(
[id] => 2
[sector] => Water
[experience] => 3
[first_name] => jagdish
[second_name] =>
[position] =>
[telephone] => 99999
[mobile] => 99
[email] => [email protected]
[education] => sdsdf
[resume] =>
[photograph] =>
[comments] => sdfsdf
[status] => 0
)
)
需要得到FIRST_NAME或SECOND_NAME –
你嘗試過什麼?你能更精確嗎? – Nicolas
感謝您的解決方案。這正是我期待的 –