php - Checkeach array item has a value -


I am trying to check a form that creates an array upon submitting, but anybody in that error Price can not be empty, how ARAR ([campaign_title] = & gt; [campaign_keyword] => gt; [introduction] => [condition] = & gt; left;

  [Campaign_headline] = & gt; array ([0] = & gt;) [article] => array ([0] => [save_multiple] = & gt; save)  

I know that I have to do something like that, but since then I have lost completely ,

  foreach ($ post = $ k => $ v) {// Do some loop to check each key as a value? Regardless of the depth, the following functions will examine all the values ​​of the array, regardless of depth. When it receives a value, then it will be right. Otherwise it will be wrong. The empty value in the 
  function (array $ array) {foreach (new recursiveitter generator ($ array)) $ v) {if (empty ($ v)) back true; }     return false; }  

Comments