can anybody tell me with example. is there a way to permanently(or till we restart the server) store variables in php array.
I have heard of static array & global variables kind of things, but i cant get them together.
$storearray = array();
array_push($storearray, "apple", "ball");
//in 30mins
array_push($storearray, "land", "band");
//in 1 hour
array_push($storearray, "bland", "aband");
when i chk the array i want all the elements to be there
Use a DATABASE:
example: MYSQL