I need to parse some source code to find the contents of a specific function. The only way I can think of is to load the source file into a string find the function by name and parse the text in the string and find the end brace of the function, made difficult by the existence of all the other braces that may be there (if, while, switch, foreach, etc...). Anybody have some code to do this???
function someFunc() { if(something) { something... } while(something) { something... } } // So I need the code from the beginning of the function to here TIA -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php