array2xml
Converte um array de indefinidas dimensões para o formato XML (sem indentação).
Uso:
string array2xml(array $arr)
Exemplo:
O exemplo acima irá imprimir:
Uso:
string array2xml(array $arr)
Exemplo:
$foo = array(
"life" => array(
"iwant" => "coffee",
"ilove" => "caffeine"
),
"work" => array(
"iwill" => "code",
"iwant" => "vacations"
)
);
echo array2xml($foo);
<life><iwant>coffee</iwant><ilove>caffeine</ilove></life><work><iwill>code</iwill><iwant>vacations</iwant></work>
Data | Autor | Changelog | Download |
---|---|---|---|
18/01/2013 7:34pm | Jefrey | - | Versão 1.0 |
Novo Comentário: