title: How to ignore if array(0) is null php
body: <p>How to ignore if array(0) is null php</p>
  
  <p>When i am print the value the array is like this: Array ( [0] => )</p>
  
  <p>if i print count($testArray) it is showing 1</p>
  
  <p>But if the array value is comes like this i don't want to insert it into the database.
  Please suggest how can i do this.</p>
  
  <p>Update:</p>
  
  <p>var_dump result: array(1) { [0]=> string(0) "" } </p>