[eluser]sophistry[/eluser]
yes, that's right so far.
what you see after the foreach loop is the path to the last helper in your helpers directory.
xwero left out the $matches_array you need in the preg_match() function.
preg_match() is a weird function because you send it an undeclared variable and it makes an array for you.
your preg_match() should look like:
Code:
preg_match(’/^function (.+?)\(/’,$line,$matches_array);
and then inside the foreach loop you need to save the matches array in yet another array.
try the var_dump inside the foreach to see what's really happening and you should get the idea.