php check content data is null code example Example 1: null condition in php is_null (var_name) Example 2: is null php is_null($var)