the difference between unset and = null

后端 未结 5 1755
暖寄归人
暖寄归人 2020-11-29 04:03

From a random php.net post:

If you are doing $whatever = null; then you are rewriting variable\'s data. You might get memory freed / shrunk fast

5条回答
  •  孤城傲影
    2020-11-29 04:22

    When using unset, memory usage and processing time is less.

    http://php.net/manual/en/function.unset.php#105980

提交回复
热议问题