SyntaxFix
Write A Post
Hire A Developer
Questions
Sometimes you can simply typecast:
// this is the value of my $xml object(SimpleXMLElement)#10227 (1) { [0]=> string(2) "en" } $s = (string) $xml; // returns "en";