Add element in post array using php -
I have an $ _POST array and I would like to add a key at the very end.
So what am I doing,
array_push ($ _ POST ['ques_15'], '');
This works but I'm getting a warning
Warning: array_push () parameter 1 is array, zero given
How can I remove this warning without closing performance errors?
I think you just want to:
$ _ POST ['ques_15'] = '';
Add this end to $ _POST array value ''
key ques_15
Comments
Post a Comment