Jnr PHP/Codeigniter Developer Question:

Explain me the differences in comparison of variable values?

Tweet Share WhatsApp

Answer:

PHP defined 2 types of comparison: == and ===. Guess yourself what will be the result of each line:

☛ var_dump(1 == TRUE);
☛ var_dump(1.0 == TRUE);
☛ var_dump(1 === TRUE);

Download Jnr PHP/Codeigniter Developer PDF Read All 61 Jnr PHP/Codeigniter Developer Questions
Previous QuestionNext Question
Tell me what is the difference between $var and $$var?Tell me what do you mean by having PHP as whitespace insensitive?