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


Top ↑

Return Return

(array) $data | $nonAttributes


Top ↑

Source Source

File: includes/libraries/class-ArrayToXML.php


			

Top ↑

User Contributed Notes User Contributed Notes

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