![]() |
savexml/loadxml
Can anyone explain the var formatting that these two functions use? I couldn't figure out how to use savexml, so I created a template xml and used loadxml to echo it, and apparently it uses an array?
XML file: PHP Code:
echo(obj); PHP Code:
|
Okay, seems the format is:
obj[0].name = "note"; obj[0][0].name = "to"; obj[0][1].name = "from"; obj[0][2].name = "heading"; obj[0][3].name = "fbody"; obj[0][x][0] = "text" So ya... |
can you not do..
echo(obj.note.to.value); ? |
Quote:
|
Generating xml:
PHP Code:
PHP Code:
|
| All times are GMT +2. The time now is 02:39 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.