Mercurial > hg > extraction-interface
view interface/load_regex.php @ 9:584b1623e9ef
TOC correction list page updated
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 09 Feb 2015 18:59:24 +0100 |
parents | 63e08b98032f |
children |
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); ?>