$l) { if (preg_match('/public function (build\w+)/', $l, $m)) { echo ($i + 1) . ': ' . $m[1] . PHP_EOL; } }