Posted by Chris on 05/16/05 18:42
If you're doing:
$items=array();
before each array_push() call, that is emptying the array, then pushing the value onto the empty array.
mayo wrote:
>I'm having a little problem adding to an array. Each time I add to an
>array it wipes what was previously added. I'm using array_push().
>
>$items=array();
>$items=array_push($items, $_POST["whatever"]);
>
>I'm missing something easy.
>
>thx
>
>
>
>
Navigation:
[Reply to this message]
|