- print_r: documentation ( source)
- array_filter: documentation ( source)
<?php
$myArray = array(
0,
NULL,
'',
'true',
false,
true,
'0',
-1
);
print_r(
array_filter($myArray)
);