Parameters
$xmlElement - The simple xml element.
Returns
true if the element text has other than white space; otherwise false;
Syntax
| PHP |
|
public static function HasXML(SimpleXMLElement $xmlElement): bool
|
Checks an XML element for a value.
Example
| PHP |
// Checks an XML element for a value.
private static function HasXML()
{
$string = LJC::XMLToString($xml);
$value = LJC::HasXML($xml);
$result = $value ? "true" : "false";
// result:
// true
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.