PHP empty() Function

The empty() function is used to trim whitespace from the edges and equate it to an empty string.

Demo :



Type Character :  
Empty

Following code is used to empty() function demo code If you need to copy and use your web site.


<?php
$character='IS_EMPTY?';
echo (empty($character) ? "Empty" : "Not empty";
?>

The empty() function have in the one arguments that name is mixed var.The empty() function will return true even if the string passed to it contains the number 0. it 0 means as Boolean false.

Free Download Script :

If you need empty() function demo code download from following link.

Download




Content