my multidimensional array is
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 
            )    
        )
then using foreach loop i submit each value and insert it in MySQL db
but if [required] => 1 exist in array  i don't want to submit any values 
so,how to check weather whole array conatins [required] => 1
 
     
     
    