Difference between session_register and $_SESSION[]

前端 未结 2 1037
走了就别回头了
走了就别回头了 2021-01-25 07:27

What is the difference between session_register() and $_SESSION array ?

2条回答
  •  清酒与你
    2021-01-25 08:06

    session_register() is kinda old, already deprecated, but as I know it does the same thing.

    also all variables that start with $_ are included in $GLOBALS and are called superglobals

提交回复
热议问题