ArrayToXML::writeAttr( XMLWriter $xml, array $data )
Write keys in $data prefixed with @ as XML attributes, if $data is an array.
Description Description
When an @ prefixed key is found, a ‘%’ key is expected to indicate the element itself, and ‘#’ prefixed key indicates CDATA content
Parameters Parameters
- $xml
-
(Required) object
- $data
-
(Required) with attributes filtered out
Return Return
(array) $data | $nonAttributes
Source Source
File: includes/libraries/class-ArrayToXML.php