fork download
  1. <?php
  2.  
  3. class Question
  4. {
  5. public $a = array();
  6. protected $b = array();
  7. private $c = array();
  8.  
  9. }
  10.  
  11.  
  12. $q1 = new Question;
  13.  
  14. var_dump($q1);
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
object(Question)#1 (3) {
  ["a"]=>
  array(0) {
  }
  ["b":protected]=>
  array(0) {
  }
  ["c":"Question":private]=>
  array(0) {
  }
}