[ create a new paste ] login | about

Link: http://codepad.org/FJ4CcKLb    [ raw code | output | fork ]

PHP, pasted on Jul 16:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
 class DOMxDocument extends DOMDocument {
    public $X=22;
    public $Y = array(
       'a' => false,
       'b'=>true
    );

    public function __construct($newconfig=NULL) {
         print "X={$this->X}\nY:";
         var_dump($this->Y); // NULL!!
         parent::__construct("1.0", "UTF-8");
    }
 }

$d = new DOMxDocument();
?>


Output:
1
2
3
4
5
6
7
X=22
Y:array(2) {
  ["a"]=>
  bool(false)
  ["b"]=>
  bool(true)
}


Create a new paste based on this one


Comments: