"in where shall i use isset() and !empty()" Code Answer

5

isset vs. !empty

FTA:

"isset() checks if a variable has a value including (False, 0 or empty string), but not NULL. Returns TRUE if var exists; FALSE otherwise.

On the other hand the empty() function checks if the variable has an empty value empty string, 0, NULL or False. Returns FALSE if var has a non-empty and non-zero value."

By Eduardo Sousa on September 16 2022

Answers related to “in where shall i use isset() and !empty()”

Only authorized users can answer the search term. Please sign in first, or register a free account.