This isn’t a WP question yet, but it will be 🙂
I’m trying to write a plugin, and I am almost there. But, I keep getting these weird errors and was wondering if someone could help:
array_rand(): Second argument has to be between 1 and the number of elements in the array
This is the array bit of code:
list($words, $author, $image, $link) = explode(“|”, trim($quote[$rand_key]));
Hopefully, I’m just missing something obvious.
Thank you so much!
- The topic ‘array_rand help’ is closed to new replies.