How to prevent undefined variable error from showing? (I know the variable is null in this case)

Switching off notices, warnings, errors is not the best way to code.
And unlike the above answers I prefer to always initialize a variable rather then using isset().

Browse More Popular Posts

Leave a Comment