Skip to content

Instantly share code, notes, and snippets.

@takuya
Created March 15, 2012 13:32
Show Gist options
  • Save takuya/2044208 to your computer and use it in GitHub Desktop.
Save takuya/2044208 to your computer and use it in GitHub Desktop.
PHPから空の要素を取り除くシンプルで確実な方法 ref: http://qiita.com/items/3217
<?php
array_diff($values,array("",null))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment