title: Check if value is empty in a two dimensional array
body: <p>How to check if a single variable or single value is empty
  is array in a array or two dimensional array</p>
  
  <p><strong>Like this array</strong></p>
  
  <pre><code>$resFirst=array(
      array(
          "course_name"   =&gt;"a",
          "duration"      =&gt;"b",
          "eligibility"   =&gt;"",
          "recognition"   =&gt;"d",
          "affiliation"   =&gt;"c",
          "certificate"   =&gt;"asd",
          "category"      =&gt;"asd",
          "type"          =&gt;"xcv",
          "school_batch"  =&gt;"zv"
      ),
      array(
          "course_name"   =&gt;"a",
          "duration"      =&gt;"b",
          "eligibility"   =&gt;"",
          "recognition"   =&gt;"d",
          "affiliation"   =&gt;"c",
          "certificate"   =&gt;"asd",
          "category"      =&gt;"asd",
          "type"          =&gt;"xcv",
          "school_batch"  =&gt;"zv"
      )
  );
  </code></pre>
  
  <p>Or an array retrieved from database</p>
  
  <p>To this, i want to check if <code>$value['course_name'] == ""</code>
  without putting alot of codes</p>
  
  <pre><code> foreach ($resFirst as $key =&gt; $value) {
          echo"
          &lt;h6&gt; name:&lt;/h6&gt;&lt;p&gt;".        $value['course_name']."&lt;/p&gt;
          &lt;h6&gt;Duration:&lt;/h6&gt;".        $value['duration']."
          &lt;h6&gt; eligiblity:&lt;/h6&gt;&lt;p&gt;".  $value['eligibility']."&lt;/p&gt;
          &lt;h6&gt;recognition:&lt;/h6&gt;&lt;p&gt;".  $value['recognition']."&lt;/p&gt;
          &lt;h6&gt;Affiliation:&lt;/h6&gt;".     $value['affiliation']."
          &lt;h6&gt; Certification:&lt;/h6&gt;".  $value['certificate']."
          &lt;h6&gt;Category:&lt;/h6&gt;".        $value['category']."     
          &lt;h6&gt;Type:&lt;/h6&gt;".            $value['type']."
          &lt;h6&gt;Category:&lt;/h6&gt;".        $value['school_batch'];
      }
  </code></pre>