Page 194 - Open Soource Technologies 304.indd
P. 194
Web Technologies-I
Notes foreach($methods as $method){
echo “<b>$method</b>( )<br />”;
}
}
echo “$class properties:<br />”;
$properties = get_class_vars($class);
if(!count($properties))
{
echo “<i>None</i><br />”;
}
else {
foreach(array_keys($properties) as $property)
{
echo “<b>\$$property</b><br />”;
}
} echo “<hr />”;
}
}
Figure 8.1 shows the output of the display_classes( ) function.
Figure 8.1: Output of display_classes( )
Showing information about stdClass
stdClass methods:
None
stdClass properties
None
Showing information about __PHP_Incomplete_Class
__PHP_Incomplete_Class methods:
None
__PHP_Incomplete_Class properties:
None
Showing information about OverloadedTestClass
OverloadedTestClass methods:
None
OverloadedTestClass properties:
None
Showing information about Directory
Directroy methods:
close()
rewind()
read()
Directroy properties:
None
188 LOVELY PROFESSIONAL UNIVERSITY