To check empty string in PHP, we can use the empty() function.

BY Best Interview Question ON 18 Aug 2020

Example

if(empty($var1)){
    // True
} else {
   //  False
}