Answers

Question and Answer:

  Home  Jnr PHP/Codeigniter Developer

⟩ Explain me the differences in comparison of variable values?

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);

 201 views

More Questions for you: