php set to null code example Example 1: php null <?php $var = NULL; ?> Example 2: null php $var = NULL;