什么是PHP中的Set X = Nothing?

Lev*_*der 2 php asp-classic

方法是:

<%
Set Mail = Server.CreateObject("SomeCOMObject")

Set Mail = Nothing
%>
Run Code Online (Sandbox Code Playgroud)

同样如下:

<?php
$Mail = new COM("SomeCOMObject");

$Mail->Close(); // <---- Not sure about this
?>
Run Code Online (Sandbox Code Playgroud)

Dej*_*vic 5

$mail = new Mail; //hello
unset($mail); //goodbye
Run Code Online (Sandbox Code Playgroud)