/blank_present

The blank and present function for PHP.

Primary LanguagePHPMIT LicenseMIT

blank_present

Build Status

The blank and present function for PHP.

Requirements

PHP 5.4+

Usage

The blank function:

if (_blank($var)) {
    // do stuff
}

The present function:

if (_present($var)) {
    // do stuff
}

Running tests

$ vendor/bin/phpunit

License

MIT