ArrayToXML

Based on: http://stackoverflow.com/questions/99350/passing-php-associative-arrays-to-and-from-xml


Description Description


Source Source

File: includes/libraries/class-ArrayToXML.php


			

Top ↑

Methods Methods

  • __construct — Construct ArrayToXML object with selected version and encoding
  • buildXML — Build an XML Data Set
  • isAssoc — Check if array is associative with string based keys FROM: http://stackoverflow.com/questions/173400/php-arrays-a-good-way-to-check-if-an-array-is-associative-or-sequential/4254008#4254008
  • writeAttr — Write keys in $data prefixed with @ as XML attributes, if $data is an array.
  • writeEl — Write XML as per Associative Array

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.