Posted By

f6design on 02/24/11


Tagged

array empty


Versions (?)

Remove empty elements from an array


 / Published in: PHP
 

Removes 'false', '0', 'null' or '' from the array

  1. $my_arr = array_filter($my_arr);

Report this snippet  

You need to login to post a comment.