foo9/blank_present

The blank and present function for PHP.

Maintainers

Package info

github.com/foo9/blank_present

pkg:composer/foo9/blank_present

Statistics

Installs: 588

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2015-03-25 15:57 UTC

This package is not auto-updated.

Last update: 2026-03-23 13:58:41 UTC


README

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