开发者

regExp for methods and class names

开发者 https://www.devze.com 2023-04-05 18:58 出处:网络
I want to print all class names and methods for a PHP specific f开发者_JS百科ile. Here\'s the pattern:

I want to print all class names and methods for a PHP specific f开发者_JS百科ile. Here's the pattern:

public function methodName()
class className extends anotherClassName{

Desired output:

methodName
className


What about using Reflection?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号