PHP Request Lifecycle

前端 未结 3 560
深忆病人
深忆病人 2021-01-11 23:27

Okay, so I\'m relatively naive in my knowledge of the PHP VM and I\'ve been wondering about something lately. In particular, what the request lifecycle looks like in PHP for

3条回答
  •  悲哀的现实
    2021-01-12 00:12

    A static variable, like any other PHP variable only persists for the life of the script execution and as such does not 'live' anywhere. Persistence between script executions is handled via session handlers.

提交回复
热议问题