Mercurial > hg > extraction-interface
comparison interface/load_regex.php @ 0:b12c99b7c3f0
commit for previous development
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 19 Jan 2015 17:13:49 +0100 |
parents | |
children | 63e08b98032f |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b12c99b7c3f0 |
---|---|
1 <?php | |
2 | |
3 $returnArray = array(); | |
4 $files1 = scandir("regex_files"); | |
5 foreach ( $files1 as $file ) { | |
6 if ( $file != "." && $file != ".." ) { | |
7 $returnArray[preg_replace("/\.txt/", "", $file)] = file_get_contents( "regex_files/".$file ); | |
8 } | |
9 } | |
10 | |
11 echo json_encode($returnArray); | |
12 ?> |