BIG BANG BIG BOOM - the new wall-painted animation by BLU
Let’s make a bet: if you don’t have to maintain your (professional) web application within a few weeks after release, I owe you a pint of beer.
Zend Framework 1.x and Doctrine 1.2 Integration on GitHub
PHP 101: remove empty values from an array
Here is a quick tip for removing empty values from array with minimum fuss.
The solution is to use array_filter see the example below.
<?php
$item = array(
0 => false,
1 => 'foo',
2 => -1,
3 => null,
4 => 'bar',
5 => ''
);
print_r(array_filter($entry));
?>
The above example will output:
Array
(
[1] => foo
[2] => -1
[4] => bar
)

