0

I want to get the actual programming code text from a specific function in a file. For example, I want to get the code inside __construct(){} inside the class called Example in ExampleClass.php. How can I do that?

Is regex the best way to do this or is there a better way?

SeanWM
  • 16,789
  • 7
  • 51
  • 83
Risha
  • 147
  • 2
  • 7

0 Answers0