A utility function to preserve an array in a session.


/ Published in: PHP
Save to your folder(s)

A utility function to preserve an array in a session. Adding the newest element to the beginning of the array and popping out the last one. Useful for displaying for instance; your last searches option in your website.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.