(No version information available, might only be in Git)

SimpleXMLElement::__toStringReturns the string content


public string SimpleXMLElement::__toString ( void )

Returns text content that is directly in this element. Does not return text content that is inside this element's children.

Liste de param├Ętres

Cette fonction ne contient aucun param├Ętre.

Valeurs de retour

Returns the string content on success or an empty string on failure.


Exemple #1 Get string content

= new SimpleXMLElement('<a>1 <b>2 </b>3</a>');

L'exemple ci-dessus va afficher :

1 3

Voir aussi

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top