Parameters
$xmlValue - The XML element.
$trim - Indicates if the values should be trimmed.
Returns
The XML string content value.
Syntax
| PHP |
public static function XMLToString(SimpleXMLElement $xmlValue , bool $trim = true): ?string
|
Gets a string value from the XML element.
Example
| PHP |
// Gets a string value from the XML value.
private static function XMLToString()
{
$result = LJC::XMLToString($xml);
// result:
// Name
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.