i need to load data as array to memory in PHP.but in PHP if i write $array= array("1","2"); in test.php then this $array variable is initialized every time user requests.if we request test.php 100 times by clicking 100 times browser refresh button then this $array variable will be executed 100 times.
ama ben bunu yalnızca bu bellek location.how kullanmak variable.but $ dizi yürütmek olmamalıdır $ dizi değişkene ilk kez istek ve test.php sonraki istek için sadece bir kez çalıştırmak gerekiyor PHP.
but in JAVA SEVRVLET it is easy to execute,just write the $array variable in one time execution of init() method of servlet lifecycle method and subsequent request of that servlet dont execute init() method but service() method but service() method always uses that $array memeory location.
all i want to initilize $array variable once but use that memory loc from subsequent request in PHP.is there any possiblity in PHP?