More than 5 years have passed since last update.
<?php array_diff($values,array("",null))
Register as a new user and use Qiita more conveniently