How to check whether a variable is empty in PHP?
< 1 min readTo check whether a variable is empty in PHP, you can use the empty() function. This function returns true if the variable is empty, and false otherwise. A variable is considered empty if it is: null an empty string (”) a string of whitespaces (‘ ‘) an empty array (array()) a number that is equal…
