Possible Duplicate:
reconstruct/get code of php function
In JavaScript there is simply .toString()
in function object, that outputs its source.
Is there an equivalent function or, how would one write one to do the same in PHP?
I am looking to write a PHP -> JS compiler. And, since token_get_all
requires source as it's parameter, I'm looking for this particular export.