What will be the output of the following PHP code (15)?

60. What will be the output of the following PHP code?

<?php
$x = -123.45;
echo var_dump(is_int($x));
?>
  1. bool(false)
  2. bool(true)
  3. false
  4. true

Answer: A) bool(false)

Explanation:

The is_int() method returns either true or false. Thus, the output of the above statement will be "bool(false)".

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.