Assigns True but not false?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In this if statement, if the condition is true, then it will assign true to the array (as I want it to). If the condition evaluates to false, it assigns nothing. Any idea why it won't assign false? If I switch the FALSE boolean value to the number 0, that will get assigned. Seems kinda strange...

$this->m_arrQuesInfo[$this->m_itemID]['blnVacPromo'] = ( ( !empty($_POST['vac_promo']) ) && ( $_POST['vac_promo'] == 'on' ) ) ? TRUE : FALSE;

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux