PrepAway - Latest Free Exam Questions & Answers

What is the output of the following code?

What is the output of the following code? class Bar { private $a = ‘b’; public $c = ‘d’; } $x =
(array) new Bar(); echo array_key_exists(‘a’, $x) ? ‘true’ : ‘false’; echo ‘-‘; echo
array_key_exists(‘c’, $x) ? ‘true’ : ‘false’;

PrepAway - Latest Free Exam Questions & Answers

A.
false-false

B.
false-true

C.
true-false

D.
true-true


Leave a Reply

Your email address will not be published. Required fields are marked *