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

Popular posts from this blog

php - Select box validation (in laravel) -

Creating a sparse matrix in Matlab with a specified number of independent Bernoulli +-1 nonzero entries -

pandas - Iterate on Groupby Object's fields -