I
I
i_want_to_know_everything2015-10-07 03:53:59
PHP
i_want_to_know_everything, 2015-10-07 03:53:59

How to extract function code from a file?

how to extract the source code and description of the foo() function from the library.php file into a string, preserving the formatting.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2015-10-07
@i_want_to_know_everything

crazy idea - there is a tokenizer / reflection for this.
but if you really want, then SO to help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question