Answers for "php check if sgtring empty"

PHP
4

php check for empty string

if (empty($var)) {
    echo '$var is either 0, empty, or not set at all';
}
Posted by: Guest on March-07-2020
0

php check if text is blank

if(trim($text) == ''){
 echo '$text is empty'; 
}
Posted by: Guest on October-28-2021

Browse Popular Code Answers by Language