to_string ()

Gets the current XML node as a true string.

Access

public

Returns

Type

Description

string

The current XML node as a true string.

Source

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

public function to_string()
{
    $s = parent::__toString();

    if ($this->attributes())
    {
        return json_decode(substr($s, 14));
    }

    return $s;
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback