Validation::blank PHP Method

blank() public static method

public static blank ( $value )
    public static function blank($value)
    {
        return !preg_match('/[^\\s]/', $value);
    }

Usage Example

Example #1
0
 /**
  * Checks if resource is not blank or empty
  *
  * @param mixed $check Array or string
  * @return boolean
  */
 static function blank($check)
 {
     if (empty($check)) {
         return true;
     }
     if (TransferValidation::fileUpload($check) && $check['error'] == UPLOAD_ERR_NO_FILE) {
         return true;
     }
     if (is_string($check) && Validation::blank($check)) {
         return true;
     }
     return false;
 }
All Usage Examples Of Validation::blank