What will be the output of this PHP code?

<?php
$value = "123";
var_dump(is_array($value));
?>
                        

Options

  • A. int(123)
  • B. bool(true)
  • C. bool(false)
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. bool(false)

Detailed Explanation

Correct Answer: Option C

Explanation:
The value "123" is a string, not an array. Even though it contains digits, is_array($value) returns false. The var_dump() function displays this as bool(false).