PHPExcel Calculation Function Examples'; $exampleTypeList = glob('./*',GLOB_ONLYDIR); foreach($exampleTypeList as $exampleType) { echo '

' . pathinfo($exampleType,PATHINFO_BASENAME) . ' Function Examples

'; $exampleList = glob('./'.$exampleType.'/*.php'); foreach($exampleList as $exampleFile) { $fileData = file_get_contents($exampleFile); $h1Pattern = '#

(.*?)

#'; $h2Pattern = '#

(.*?)

#'; if (preg_match($h1Pattern, $fileData, $out)) { $h1Text = $out[1]; $h2Text = (preg_match($h2Pattern, $fileData, $out)) ? $out[1] : ''; echo '',$h1Text,'
'; if ($h2Text > '') { echo $h2Text,'
'; } } } } ?>