Commit 68561fb5 authored by Orbmancer's avatar Orbmancer
Browse files

loadXML returns for every XML: x, y and content

parent 25bc303e
......@@ -17,8 +17,14 @@ class Data {
while (false !== ($entry = readdir($handle))) {
if ($entry != "." && $entry != "..") {
$output[] = file_get_contents($dir.$entry);
$x = substr($entry, 0, 1);
$y = substr($entry, 2, 1);
$output[] = array(
'x' => $x,
'y' => $y,
'content' =>file_get_contents($dir.$entry)
);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment