// Function for basic field validation (present and neither empty nor only white space
function IsNullOrEmptyString($str){
return ($str === null || trim($str) === '');
}
More Related Contents:
- how to make a function that validates fields in a form? php [closed]
- PHP validation/regex for URL
- Laravel 5.2 Validation Error not appearing in blade
- Easy way to test a URL for 404 in PHP?
- A non well formed numeric value encountered
- Checking if form has been submitted – PHP
- How to check file types of uploaded files in PHP?
- Laravel update model with unique validation rule for attribute
- php date validation
- What is the best way to validate a credit card in PHP?
- How to “Validate” Human Names in CakePHP?
- Validating Crontab Entries with PHP
- PHP: Best way to check if input is a valid number?
- Laravel password validation rule
- Validating US phone number with php/regex
- Laravel: Validation unique on update
- How validate unique email out of the user that is updating it in Laravel?
- checking if a number is float in PHP
- Why a function checking if a string is empty always returns true? [closed]
- How to Validate on Max File Size in Laravel?
- required_if Laravel 5 validation
- Regex for password PHP [duplicate]
- Custom validator in Laravel 5
- Best way to check for positive integer (PHP)?
- How to return custom error message from controller method validation
- Which function in php validate if the string is valid html?
- Number in the top-level domain?
- Laravel: Validate maximum File size?
- Check if laravel model got saved or query got executed
- Validate date format in php