Welcome Guest, Not a member yet? Register   Sign In
$this->input->post('')
#7

[eluser]Murodese[/eluser]
[quote author="ray73864" date="1224420001"]i never understood the need for the extra ='s, i always use != or == and it always seems to work, so why the extra = sign?[/quote]

PHP defines several things as false. FALSE, 0, "", null or an empty array will all qualify as false. Adding the extra = (ie === or !==) will make sure it also type-checks it to make sure it's actually FALSE and not one of the others.

Code:
if (0 == FALSE) // true
if (0 === FALSE) // false


Messages In This Thread
$this->input->post('') - by El Forum - 10-18-2008, 04:33 AM
$this->input->post('') - by El Forum - 10-18-2008, 06:49 AM
$this->input->post('') - by El Forum - 10-18-2008, 06:54 AM
$this->input->post('') - by El Forum - 10-18-2008, 07:00 AM
$this->input->post('') - by El Forum - 10-18-2008, 07:40 AM
$this->input->post('') - by El Forum - 10-19-2008, 01:40 AM
$this->input->post('') - by El Forum - 10-19-2008, 01:43 AM
$this->input->post('') - by El Forum - 10-19-2008, 10:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB