Jnr PHP/Codeigniter Developer Question:
Download Job Interview Questions and Answers PDF
Please explain what is the main problem in comparison of floating point numbers?
Answer:
Explain the starship operator and why it returns the given output
echo 1.5 <=> 2.5; // -1
echo "a" <=> "a"; // 0
echo [1, 2, 3] <=> [1, 2, 4]; // -1
echo 1.5 <=> 2.5; // -1
echo "a" <=> "a"; // 0
echo [1, 2, 3] <=> [1, 2, 4]; // -1
Download Jnr PHP/Codeigniter Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me are objects in PHP 5+ passed by value or reference? | Do you know what is CodeIgniter? |