Jnr PHP/Codeigniter Developer Question:
Download Questions PDF

Explain me the differences in comparison of variable values?

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 Interview Questions And Answers PDF

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?