Hi,
I am trying to find out wether a function is defined on a certain line in a file, and return the function name and arguments, but i just cannot get it working. What should i change?:
$data = "Here is a function databasesettings(variable)";
if(ereg("function",$data))
{
preg_match("function (.)(\\(.\\))", $data, $matches);
print_r($matches);
}
Thankks,
J.