<?php $a = array(1,2,3,4,5); $filtered = array_filter($a, function($i) { return $i; }); print_r($filtered);
You have javascript disabled. You will not be able to edit any code.