I want php to shuffle an array for user once, and then remember it through cookie so that on the refresh, array won’t be shuffled again if cookie is set. Is that possible?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use shuffle for shuffeling and save your array in a cookie (serialize).
Every page reload you check if the cookie exists, if yes read it and if not shuffle your data and save it..