Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
As far as I understand, you wrote before in JavaScript.
https://medium.com/devschacht/glossary-of-modern-j...
pay attention to the concepts of
Cleanliness, Condition
So in PHP, and especially after the appearance of OOP in it , the
use of global is a bad form.
This is the fundamental difference between PHP and JS.
With each request, the script execution starts from scratch, i.e. without special measures,
the script does not know what the user has done before.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question