<<< Previous question <<< Question ID#0110.md >>> Next question >>>
You have given the following PHP code:
class Example {
public $public = '1';
private $prv = '2';
protected $prt = '3';
}
$arrayobj = new ArrayObject(new Example());
var_dump($arrayobj->count());
What will be the output?
- A) int(1)
- B) int(3)
- C) int(0)
- D) int(2)
Answer
Answer: A