PHP Interview questions

Total available count: 33
Subject - PHP Frameworks
Subsubject - PHP

What is NaN?

Few numeric operations can result in a value represented by the constant NAN. This result represents an undefined or unrepresentable value in floating-point calculations. Any loose or strict comparisons of this value against some other value, including itself will have a output of FALSE.

Because NAN represents any number of different values, NAN should not be compared to other values, including itself, and instead should be checked for using is_nan().

Next 5 interview question(s)

PHP supports 8 primitive types. What are they?
What are the differences between echo and print in PHP?
How to execute a PHP script using command line?
What is the difference between include and require?
Who is father of PHP?