Horje
bool value of blank string inp php Code Example
bool value of blank string inp php

<?php
/**
* @author :  Nanhe Kumar <nanhe.kumar@gmail.com>
* List of all empty values
**/

$testCase = array(
    1 => '',
    2 => "",
    3 => null,
    4 => array(),
    5 => FALSE,
    6 => NULL,
    7=>'0',
    8=>0,
    
);

foreach ($testCase as $k => $v) {
    if (empty($v)) {
        echo "<br> $k=>$v is empty";
    }
}
/**
Output
1=> is empty
2=> is empty
3=> is empty
4=>Array is empty
5=> is empty
6=> is empty
7=>0 is empty
8=>0 is empty
**/
?>

Source: www.php.net




Php

Related
 php inverse sigmoid function Code Example php inverse sigmoid function Code Example
upgrade php linux Code Example upgrade php linux Code Example
php page loader script Code Example php page loader script Code Example
laravel permit only some inputs Code Example laravel permit only some inputs Code Example
content for php.ini created manually Code Example content for php.ini created manually Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10