-
PHP Array Question
Okay, I'm trying to figure out how to do something in PHP. Hopefully, I can explain clearly what I'm trying to do and one of you out there could help me.
I have an array with, lets say, 300 or so elements. I want to randomize the elements every day. That would be easy enough just by using shuffle().
However, I want the randomization to be based on the date. For example, on August 17th, I want all the elements randomized the same way, and for August 18th I want them to be randomized the same way.
What would be the best way to handle this?
[Actually, now that I think about it, to randomize such a large array upon every page load would probably be very CPU intensive. Any ideas?]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks