Home > Article > Backend Development > Analysis of the difference between unset() and null when deleting variables in PHP_PHP Tutorial
The first method: $varname=null
The second method: unset($varname)
Both methods can delete variables, but the results are slightly different.
Code:
');?>
print_r($a);
print('
');
print_r($b);
print('