phpbar.de logo

Mailinglisten-Archive

[php] stdClass Directory

[php] stdClass Directory

Daniel Beulshausen abe_(at)_yavin4.de
Thu, 8 Jun 2000 14:41:01 +0200


<?
function list_classes()
{
 $classes = get_declared_classes();
 sort( $classes );

 foreach( $classes as $class )
 {

  $methods = get_class_methods($class);
  reset($methods);
  $vars = get_class_vars($class);
  reset($vars);

  print "class $class<br>{<br>";

  foreach($vars as $var => $value)
  print "var $var => $value;<br>\n";

  foreach($methods as $method)
  print "$method();<br>\n";

  print "<br>}<br><br>";
 };

}

list_classes();

$dir = new Directory;
?>

weiss jemand wie die directory class von php4 zu nutzen ist?

gruss
daniel

--
/ Daniel Beulshausen
Mail: abe_(at)_flaemingnet.de



php::bar PHP Wiki   -   Listenarchive