Array (
[0] => Array (
[questionID] => 47
[surveyID] => 51
[userID] => 31
[question_Title] => Choose Any One?
[question_Type] => Dropdown
[response] => 1.Android 2.Windows 3.Blackberry
[required] => 0
[add_time] => 0
)
[1] => Array (
[questionID] => 48
[surveyID] => 51
[userID] => 31
[question_Title] => Is it?
[question_Type] => Bigbox
[response] => Yes No
[required] => 1
[add_time] => 0
)
[2] => Array (
[questionID] => 129
[surveyID] => 51
[userID] => 31
[question_Title] => sELECT
[question_Type] => Single
[response] => DFG HBK GHCK HK
[required] => 0
[add_time] => 0
)
)
這是我的多維檢查關聯數組包含值
現在我想最初檢查數組包含[需要] => 1或[需要] => 0
我不想遍歷數組
嘗試arrayName中的[0] [ 'required'] – Swetha 2014-09-23 06:29:56
你想檢查這個每個子陣列嗎?明確你的意圖 – niyou 2014-09-23 06:50:34
niyou,是的!我想檢查這個每個子陣列 – 2014-09-23 07:25:54