Welcome Guest, Not a member yet? Register   Sign In
Check if there is get parameters
#1

[eluser]Unknown[/eluser]
Hello.
I wonder how I can check if the number of get params is more than 0? I tried just
Code:
count($this->input->get());
but if there is not any get params the $this->input->get() becomes boolean "true". And this is quite strange for me. When there is some params it becomes an array. So now I use
Code:
if (is_array($this->input->get())
to check if there is any params, but it seems not the best solution




Theme © iAndrew 2016 - Forum software by © MyBB