Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend 200-710 Exam - Topic 4 Question 108 Discussion

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';
B) false
A) true

Zend 200-710 Exam - Topic 4 Question 108 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 108
Topic #: 4
[All 200-710 Questions]

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';

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel