私はこのコードを持っています:
<?php
$a = "dog";
$b = "cat";
$c = "pig";
$params = array($a, $b, $c);
some_function($params);
unset($a, $b, $c);
//echo "<br>".$a."<br>".$b."<br>".$c;
?>
変数名のみ(評価された変数ではない)をunset関数に渡す方法はありますか?何かのようなもの:
unset($params); //but this doesn't work
それ以外の
unset($a, $b, $c);
助けてくれてありがとう。