In PHP, why are my session variables persisted as references?

后端 未结 4 1748
醉话见心
醉话见心 2021-01-22 09:37

Here\'s the code. It\'s a simple operation to check that a session ID isn\'t being spoofed by verifying the IP address:

session_start();
$session_ip_address = $_         


        
4条回答
  •  天涯浪人
    2021-01-22 10:19

    it does assign by value, the reference & next to $_SESSION has nothing to do with your expression $_SESSION['x'] = $x;

提交回复
热议问题