Hi, Why outputs 1 0 but not 101? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
27th Jul 2019, 5:59 PM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
3 Answers
+ 2
Hi, Thank You, Strong mind. - :)
27th Jul 2019, 6:41 PM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
+ 1
Because null is evaluated as false. You can find more info here:https://www.php.net/manual/en/types.comparisons.php
27th Jul 2019, 6:21 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
You are welcome EGO 😉👍
27th Jul 2019, 6:44 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar