Mercurial > hg > extraction-interface
view interface/load_regex.php @ 4:883ad980a43b
add dynasty column to table books
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 27 Jan 2015 16:40:30 +0100 |
parents | b12c99b7c3f0 |
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); ?>