<?php
/*
Author : Martin Fasani [ www.movil.be ]
lastMod: 20050701 [YYYYMMDD]
Properties and methods of the class
*/
require("classhttpreq.php");
function print_vars($obj) {
$arr = get_object_vars($obj);
while (list($prop, $val) = each($arr))
echo "\t$prop = $val\n";
}
function print_methods($obj) {
$arr = get_class_methods(get_class($obj));
foreach ($arr as $method)
echo "\tfunction $method()\n";
}
$httpreq=new httpreq('httpreq1');
echo "<pre>";
echo "\nhttpreq: Properties\n";
print_vars($httpreq);
echo "\nhttpreq: Methods\n";
print_methods($httpreq);
echo "</pre>";
?>
|