XML_Util::isValidName

XML_Util::isValidName()

XML_Util::isValidName() -- verify an XML name

Description

Checks, whether a string is a valid XML name. In XML the names of tags and attributes must follow strict rules. This method can be used to validate the names you are using.

Parameter

  • string $string - string to be checked

Return value

Returns TRUE on success, PEAR_Error on failure.

Note

This function should be called statically.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.