Mercurial > hg > webaudioevaluationtool
comparison scripts/score_parser.php @ 565:fb8bc71c0b40 Dev_main
Added score_parse.php separators for CSV
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Tue, 23 Feb 2016 17:11:28 +0000 |
parents | d753dfb040bf |
children | 03e713d870cf |
comparison
equal
deleted
inserted
replaced
564:4ee95cb8ff55 | 565:fb8bc71c0b40 |
---|---|
172 $doc_string = "page,axis,element,value"."\r\n"; | 172 $doc_string = "page,axis,element,value"."\r\n"; |
173 foreach($root->nest as $page){ | 173 foreach($root->nest as $page){ |
174 foreach($page->nest as $axis) { | 174 foreach($page->nest as $axis) { |
175 foreach($axis->nest as $element) { | 175 foreach($axis->nest as $element) { |
176 foreach($element->nest as $value) { | 176 foreach($element->nest as $value) { |
177 $doc_string = $doc_string.$page->id; | 177 $doc_string = $doc_string.$page->id.','; |
178 $doc_string = $doc_string.$axis->id; | 178 $doc_string = $doc_string.$axis->id.','; |
179 $doc_string = $doc_string.$element->id; | 179 $doc_string = $doc_string.$element->id.','; |
180 $doc_string = $doc_string.$value; | 180 $doc_string = $doc_string.$value; |
181 $doc_string = $doc_string."\r\n"; | 181 $doc_string = $doc_string."\r\n"; |
182 } | 182 } |
183 } | 183 } |
184 } | 184 } |