I was wondering, I have this big array, is it possible to have it only once in memory rather then once per thread? Take the tags here at stackoverflow as example. They barely ever change, why not have a single memory spot for them? And maybe even keep that array permanently in memory?
There are about nine superglobal variables in PHP which are sometimes referred to as automatic globals .
PHP $_POST is widely used to collect form data after submitting an HTML form with method="post".
Where the $_GET superglobal variable is used to collect form data which is submitted with the GET method, the $_POST superglobal variable is used to get the form data for the POST method. The POST form data won't be displayed in the URL; instead, it's available as a part of the request body.
PHP $_POST is a PHP super global variable which is used to collect form data after submitting an HTML form with method="post".
Take a look at apc_store
Unlike many other mechanisms in PHP, variables stored using apc_store() will persist between requests (until the value is removed from the cache).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With