Example #1
0
    }
    function set_var4($value)
    {
        $this->test_var4 = $value;
        echo "test_var4 property set to {$value}<br />\n";
        return true;
    }
    function disp()
    {
        echo "<pre>";
        var_dump($this);
        echo "</pre>";
    }
}
$obj = new test_class(1, 'arg2');
$obj->set_var1('test1');
$obj->set_var2(123);
$obj->set_var3($a);
/* Array from previous test */
$obj->set_var4(array(1, 2, 3, 4, 5, 6, 7, 8, 9));
$obj->disp();
?>
<h2>And finally a bit of XML and XSLT</h2>
<?php 
$xml = domxml_open_file('presentations/slides/intro/menu.xml');
$xsl = domxml_xslt_stylesheet_file('presentations/slides/intro/menu.xsl');
$out = $xsl->process($xml);
echo $out->dump_mem();
?>
</p>
</body>