Skip to content

Instantly share code, notes, and snippets.

@umakantp
umakantp / global.php
Last active December 31, 2015 04:27
Global functions: handy global function for any PHP project http://umakantpatil.com/posts/global-functions-handy-for-any-php-project
<?php
/**
* Global functions.
*/
/**
* Returns true if $var is not null.
*
* Useful in array_filter and other areas without involving anonymous
* functions (which phpcs throws a fit over all too often).