Jnr PHP/Codeigniter Developer Question:
Download Job Interview Questions and Answers 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);
☛ var_dump(1 == TRUE);
☛ var_dump(1.0 == TRUE);
☛ var_dump(1 === TRUE);
Download Jnr PHP/Codeigniter Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me what is the difference between $var and $$var? | Tell me what do you mean by having PHP as whitespace insensitive? |