CSV/XML
CSV/XML
Out of context: Reply #11
- Started
- Last post
- 12 Responses
- unfittoprint0
didn't you to echo it as XML?
if so, use a while or a for in loop in php and constrcut each node:
( { and } stand for the "more than", "less than" symbols):$xml = "\n";
$xml .= "\n";
for(i=0, i{count($Array), i++){
$xml .= "{object id=\"".i."\" price=\"".$Array[i][0]."\" volume=\"".$Array[i][2]."\"
time=\"".$Array[i][4]."\" /}";
};
$xml .= "";echo $xml;