PrepAway - Latest Free Exam Questions & Answers

What is the output of the following code? $a = array(‘a’, ‘b’=>’c’); ec

What is the output of the following code? $a = array(‘a’, ‘b’=>’c’); echo
property_exists((object) $a, ‘a’)?’true’:’false’; echo ‘-‘; echo property_exists((object) $a,
‘b’)?’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 *