How to return an empty string instead of null for $this->input->post() |
Hey Guys,
As mentioned in the title, I want to return an empty string because mysql won't let me insert value as NULL. I tried making the following changes from this PHP Code: public function post($index = NULL, $xss_clean = NULL) to this PHP Code: public function post($index = "", $xss_clean = NULL) But it still returns NULL. Any suggestions on how i can do that?
|
Welcome Guest, Not a member yet? Register Sign In |