to_array ()

Gets the current XML node as CFArray, a child class of PHP’s ArrayObject class.

Access

public

Returns

Type

Description

CFArray

The current XML node as a CFArray object.

Source

Method defined in utilities/simplexml.class.php | Toggle source view (4 lines) | View on GitHub

public function to_array()
{
    return new CFArray(json_decode(json_encode($this), true));
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback