API16

JRegistryFormatXML/stringToObject: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Parse a XML formatted string and convert it into an object. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JRegistryFormatXML/stri...
 
m clean up
Line 2: Line 2:
Parse a XML formatted string and convert it into an object.
Parse a XML formatted string and convert it into an object.


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JRegistryFormatXML/stringToObject|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JRegistryFormatXML/stringToObject}}
 
{{subst:Description:JRegistryFormatXML/stringToObject}}


===Syntax===
===Syntax===
Line 42: Line 40:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JRegistryFormatXML/stringToObject|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JRegistryFormatXML/stringToObject}}
</span>
{{SeeAlso:JRegistryFormatXML/stringToObject}}


===Examples===
===Examples===

Revision as of 14:20, 24 March 2017

Description

Parse a XML formatted string and convert it into an object.


{{subst:Description:JRegistryFormatXML/stringToObject}}

Syntax

stringToObject($data, $namespace='')
Parameter Name Default Value Description
$data XML Formatted String
$namespace

Returns

object Data object.

Defined in

libraries/joomla/registry/format/xml.php

Importing

jimport( 'joomla.registry.format.xml' );

Source Body

public function stringToObject($data, $namespace='')
{
        return true;
}


{{subst:SeeAlso:JRegistryFormatXML/stringToObject}}

Examples

<CodeExamplesForm />