<?php
$data = php_strip_whitespace(''); //Remove comments, spaces, line breaks (not including strings)
echo $data;
$data = preg_match_all("
/
function\s+ #Match function and spaces after it
[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]* #Match function name
\(([^)]*?)\)\s+ #Match function parameters and capture as a sub-pattern
\{
(.*?)
\}(?=(?:\s*function|\s*?$)) #Match braces only if followed by function or at the end of the string
/xi
", $data, $matches);
print_r($matches);
?>