Mercurial > hg > extraction-interface
view 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 |
line wrap: on
line source
<?php $returnArray = array(); $files1 = scandir("regex_files"); foreach ( $files1 as $file ) { if ( $file != "." && $file != ".." ) { $returnArray[preg_replace("/\.txt/", "", $file)] = file_get_contents( "regex_files/".$file ); } } echo json_encode($returnArray); ?>