get_class_methods

get_class_methods

Listening Video

The get_class_methods() function returns an array containing the names of the methods belonging to a specified class. The resulting array has numeric index. demo.php
<?php include_once("class1.php"); $objInstance = new class1(); $methods = get_class_methods($objInstance); foreach($methods as $method){ echo "$method <br>"; } ?>
class1.php
<?php class class1 { public function method_1(){ } public function method_2(){ } } ?>

0 Response to "get_class_methods"

Post a Comment