How can I change $this->input->post() in array_change_key_case($this->input->post(),CASE_LOWER) and i use $this->input->post()?

How can I change $this->input->post() in array_change_key_case($this->input->post(),CASE_LOWER) and i use $this->input->post() ?

$this->input->post() = array_change_key_case($this->input->post(),CASE_LOWER);
March 23rd 20 at 19:19
1 answer
March 23rd 20 at 19:21
1. You are trying the result of one function to assign the result to another function. So it will not work.
2. It seems to me that input does not provide methods to modify the query, so in your case you need to do something like this:
$post = array_change_key_case($this->input->post(),CASE_LOWER);

And then use $post instead of accessing $this->input->post()
3. Is Codeigniter?
Yes Codeigniter, but I can't use $post , there is a mess - brandy.McCullough commented on March 23rd 20 at 19:24
@brandy.McCullough, I did not say to use $_POST. Name the variable $params or $request... anyway. - wade.Vandervort commented on March 23rd 20 at 19:27

Find more questions by tags PHP