JRegistryFormatXML/stringToObject: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
===Syntax=== | ===Syntax=== | ||
| Line 41: | Line 41: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=stringToObject | category=stringToObject | ||
category=JRegistryFormatXML | category=JRegistryFormatXML | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:00, 25 March 2017
Description
Parse a XML formatted string and convert it into an object.
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;
}
Examples
Code Examples