XML_Util::splitQualifiedName

XML_Util::splitQualifiedName() – split qualified name

Synopsis

require_once 'XML/Util.php';

array XML_Util::splitQualifiedName ( string $qname , string $defaultNs = null )

Description

Splits a qualified name and returns array with namespace and local part.

Parameter

  • string $qname - qualified tag name (e.g. xsl:stylsheet)

  • string $defaultNs - default namespace, will be used in return value, if qualified name contains only a local part

Return value

array assoc array containing namespace and local part of the tag

Note

This function should be called statically.