Use is_null or ===
operator.
is_null($result['column'])
$result['column'] === NULL
More Related Contents:
- Why I am getting Cannot pass parameter 2 by reference error when I am using bindParam with a constant value?
- PHP/MySQL Insert null values
- How to store NULL values in datetime fields in MySQL?
- using nulls in a mysqli prepared statement
- MySQL and PHP – insert NULL rather than empty string
- How to select rows where column value IS NOT NULL using CodeIgniter’s ActiveRecord?
- MySQL, how to insert null dates
- PHP DateTime supported formats
- Can I call a PHP function in a JavaScript click handler?
- How to create a chat program using php and mysqli for chatting [closed]
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘WHERE `id` [closed]
- Can I store images in MySQL [duplicate]
- MySQL – This version of MySQL doesn’t yet support ‘LIMIT & IN/ALL/ANY/SOME subquery
- Insert multiple rows with one query MySQL
- Why is using a mysql prepared statement more secure than using the common escape functions?
- localhost vs. 127.0.0.1 in mysql_connect()
- Selecting all columns that start with XXX using a wildcard?
- mysql_connect(): No connection could be made because the target machine actively refused it
- Fatal error: Uncaught exception ‘mysqli_sql_exception’ with message ‘No index used in query/prepared statement’
- PDO MySQL: Insert multiple rows in one query
- Outputting all PHP errors to database not error_log
- Laravel nested relationships
- getting the value of an extra pivot table column laravel
- php sample script for pagination [closed]
- PHP Laravel: No connection could be made because the target machine actively refused it
- Create PHP array from MySQL column
- UNION syntax in Cakephp
- How do I format numbers to have only two decimal places?
- Group mysql results by category and display them into groups under each category
- PHP & mySQL: When exactly to use htmlentities?