Inserts or updates a variable in shared memory
(PHP 4, PHP 5)
Code Examples / Notes » shm_put_var
Use as few variable_keys as you can. With large arrays of data, rather make the array multi-dimensional and store under one variable_key than use variable_key as your index. The benefit is especially noticeable when repeated fetching from the end of the array is necessary and updates are less frequent.