IsNullOrEmpty function for PHP

This snippet will give you the IsNullOrEmpty function for PHP.

Sample PHP

function IsNullOrEmpty($input){
    return (!isset($input) || trim($input)==='');
}

Please Share us:
Please rate this snippet

2 thoughts on “IsNullOrEmpty function for PHP

Leave a Reply