200-710 practice question 21 of 30

What is the output of the following code? class Foo Implements ArrayAccess { function offsetExists($k) { return true;} function offsetGet($k) {return…

Choose your answer, then check it against the explanation.

What is the output of the following code? class Foo Implements ArrayAccess { function offsetExists($k) { return true;} function offsetGet($k) {return 'a';} function offsetSet($k, $v) {} function offsetUnset($k) {} } $x = new Foo(); echo array_key_exists('foo', $x)?'true':'false';
Answer options
Question 21 of 30

Keep practicing

Take the free 200-710 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other 200-710 practice questions

Scroll to Top