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';
Detra
16 days agoLonna
22 days agoJosphine
27 days agoYolande
1 month agoNaomi
1 month agoJustine
1 month agoAlfred
2 months agoDomitila
2 months agoLouis
2 months agoWillard
2 months agoJamika
2 months agoGlory
2 months ago