FULL STACK   ·   UI   ·   UX   ·   GRAPHICS   ·   DEVELOPER   ·   INSTRUCTOR

Adam Khoury

Donate funds to show love and support

Click the button below to donate funds securely online. You can use your PayPal account or a credit card.

Your donations help free up my time to produce more content and assist in covering server costs. It's also a great way to say thanks for the content!

Application Configuration

Adam will be adding options here soon.

Using the get_class_methods Function

Published :
Author :
Adam Khoury
The get_class_methods() function returns an array containing the names of the methods belonging to a specified class. The resulting array has a 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(){ } } ?>