php - get class methods with ReflectionClass

php
voted: 1
vote
php class methods reflection

If class name if for example string class methods can be read with ReflectionClass like this

<?php
    $class = 'className';
    $classInfo = new \ReflectionClass($class);
    $classMethods = $classInfo->getMethods();
    var_dump($classMethods);
?>
working url: not entered
version: not entered
Leave a Comment:
Characters left:
No comments yet.