Welcome Guest, Not a member yet? Register   Sign In
CI doc says == FALSE. Why isn't it === false?
#1

Hello,

At https://codeigniter.com/user_guide/libra...light=form you have the comparison:
PHP Code:
if ($this->form_validation->run() == FALSE


Two questions from the above code:

1) The doc says that it returns a boolean result. So, why doesn't it use the "===" operator?
2) PSR-2 says that the constants true, false, and null MUST be in lower case. Would make any difference if I switch FALSE to false in the above example?

Thank you,
C
Reply


Messages In This Thread
CI doc says == FALSE. Why isn't it === false? - by castle - 03-31-2017, 01:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB