[eluser]Nummero2[/eluser]
Yes thats the point. I´m not getting through the whole meaning of the preg_match function
-Namely where do I then define the function I am searching for? I mean where do I define that it should search the helper files for the _helper_test function if present?
-what is the variable $line for?
Heres my code now but it only shows a one line string like
string(74) "E:/xampp/htdocs/intranet/system/application/helpers/one_helper.php"
Code:
$helpers = glob(APPPATH.'helpers/*_helper.php');
$i=0;
foreach ($helpers as $line) {
preg_match('/^function (.+?)\(/',$line);
$i++;
}
echo var_dump( $line );
Sorry if the whole topic in itself is not reasonable but at the moment I´m just playing around with different ideas/methods.
Greetings Sebastian