On 14 Jan 2010, at 13:27, Daniel C. wrote:
On Thu, Jan 14, 2010 at 12:12 PM, Wade Preston Shearer <[email protected]> wrote:Is there an easier way to get a list of the functions in a script than usingregex?Well, this may not do exactly what you want, but.... $arr = get_defined_functions(); $funcs = $arr[user]; include(your_script_here); $arr = get_defined_functions(); $newfuncs = $arr[user]; $funcs_in_script = array_diff($newfuncs, $funcs); This must be run, of course, before you include the script, and since it requires including the script you wouldn't want to do this if it has side effects. But other than that it should do the job.
Thanks, Daniel. That is exactly what I need.
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
