Well, I googled this a bit, and I understand what normally would cause this warning--but I don't see how it applies in my situation. Here's my code:
Code: Select all
$random = rand();
array_push($post['random'],$random);
$post['random'] = $random;Code: Select all
Warning: array_push() [function.array-push]: First argument should be an array...First off, I am certain that $post is an array. I was trying to push a random value to it, with with the key of "random". Why is this giving me this error, when the first argument is an array?
Thanks.