I am trying to comprehend how PHP's isset()
and is_null()
functions are different from one another.
I do understand their difference from the manual, but cannot come up with any example of when I absolutely need to use one function over another.
It seems I can use one or the other and it wouldn't matter, except that isset
doesn't throw a Notice
error if the reference didn't exist, while is_null
would.
If I suppress such type of errors, then in terms of functionality these 2 functions would be exactly similar.
Have I understood it correctly?