Answer the question
In order to leave comments, you need to log in
The main life cycle of a PHP program?
A newbie in php, I don’t understand everything, but where is the entry point of the program, as in nodeJS or JAVA, for example, there is an array with goods, the user sends a request to purchase a product, the selected product decreases in the array, and this array exists only for this user, i.e. with 1000 requests, I will create 1000 of these arrays and at the same time they will not change at all after the response is sent, and I need this one array to work with all users, I did not find an explanation for half the tutorial. You need to build a simple api that would remember everything while the server is running, without subds and files.
Answer the question
In order to leave comments, you need to log in
klisl.com/memcache.html
and I need this one array to work with all users, I did not find an explanation for half the tutorial.transaction in the database.
PHP
without subd and files.
If you want an "undying" http server like express in node.js, then use ReactPHP . Natively in php, what you need cannot be done.
The entry point to a program is denoted in PHP as follows:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question