Discussion Forum | Board Infinity

In PHP how to check if a given variable is empty?

In PHP how to check if a given variable is empty?

1 Like

By default, empty() function can be used to check whether a variable is empty or not. It returns false if the variable exists and returns true if the variable doesn’t exists.