is_null vs null in php

Posted on

In this article we will learn about some of the frequently asked Php programming questions in technical like is_null vs null in php. When creating scripts and web applications, error handling is an important part. If your code lacks error checking code, your program may look very unprofessional and you may be open to security risks. Error handling in PHP is simple. An error message with filename, line number and a message describing the error is sent to the browser. This tutorial contains some of the most common error checking methods in PHP. Below are some solution about is_null vs null in php.

As per the php.net site documentation, is_null() function finds whether provided variable is NULL.

Actually, is_null() function works similar like isset() but as its opposite. So it returns TRUE in all the cases except when there is no value assigned to a variable OR assigned as NULL.

https://programmingdive.com/is-null-vs-null-in-php/

Leave a Reply

Your email address will not be published. Required fields are marked *