Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Normand Erwan
VVVVVV_level_merger
Commits
68561fb5
Commit
68561fb5
authored
Jun 01, 2015
by
Orbmancer
Browse files
loadXML returns for every XML: x, y and content
parent
25bc303e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Data.class.php
View file @
68561fb5
...
...
@@ -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
)
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment