Cast as whatever type you want (and makes sense…). By concatenating, you’re implicitly casting to string, so
$value = (string) $xml->someNode->innerNode;
More Related Contents:
- Simple XML – Dealing With Colons In Nodes
- Parse XML with Namespace using SimpleXML [duplicate]
- PHP simpleXML how to save the file in a formatted way?
- How to get the value of an attribute from XML file in PHP?
- PHP library for parsing XML with a colons in tag names? [duplicate]
- SimpleXML – Remove xpath node
- How to write CDATA using SimpleXmlElement?
- What’s the difference between PHP’s DOM and SimpleXML extensions?
- PHP SimpleXML: insert node at certain position
- Accessing @attribute from SimpleXML
- Best way to process large XML in PHP [duplicate]
- Updating XML node with PHP
- SimpleXML how to prepend a child in a node?
- SimpleXML: Working with XML containing namespaces
- Using SimpleXML to load remote URL
- PHP – Processing Invalid XML
- PHP convert XML to JSON group when there is one child
- Getting the text portion of a node using php Simple XML
- PHP, SimpleXML, decoding entities in CDATA
- PHP SimpleXML + Get Attribute
- SimpleXML get element content based on attribute value [duplicate]
- converting SOAP XML response to a PHP object or array
- SimpleXML SOAP response Namespace issues
- How to get attribute of node with namespace using SimpleXML? [closed]
- Format output of $SimpleXML->asXML(); [duplicate]
- How to save changed SimpleXML object back to file?
- Remove namespace from XML using PHP
- adding a namespace when using SimpleXMLElement
- “At sign” @ in SimpleXML object?
- simple xml add namespaced child