在logout()中默认的AuthenticateUsers.php函数: * Log the user out of the application.: redirect('/');$this->guard()->logout();指向StatefulGuard.php: * Log the user out of the application()函数,后者也指向Store.php中的flush()。然而,这个<e
函数运行后,函数中的变量会被销毁吗? function C() { echo "XXX".$x;
// After this function is finished, will $x be destroyed by default to save memory in PHP?// After this function is finished,
我是一个新手程序员,所以我事先为任何明显的错误道歉。我花了一周时间创建一个产品数据库之类的东西。我还可以使用表单添加产品,查看添加的所有产品等等。我使用的是通过表单输入数据创建的会话。我很难包含一个delete产品页面,我试着使用unset来清除变量,但是不能让它太好地工作。$_SESSION['Products'][] = $_POST; //is how i set the session on the add products page.
unset $_SESSION['Products'][]; //is ho