Quantcast
Channel: Redips spideR Net» PHP
Viewing all articles
Browse latest Browse all 10

Convert PHP associative array to XML

$
0
0
Post shows simple PHP function of how to create XML string from associative array. In foreach loop, each item will be closed within XML tag named on key part of array member. After loop is finished, function returns XML string. I also created options to add parent node and write nodes in uppercase.

Viewing all articles
Browse latest Browse all 10

Trending Articles