WordPress at Your Fingertips
function is not described

AtomParser::map_xmlns() public WP 1.0

Map XML namespace to string.

{} It's a method of the class: AtomParser{}

No Hooks.

Return

String. 'xmlns="{url}"' or 'xmlns:{namespace}="{url}"'

Usage

$result = AtomParser::map_xmlns( $p, $n );
$p(indexish) (required)
XML Namespace element index
$n(array) (required)
Two-element array pair. [ 0 => {namespace}, 1 => {url} ]

Code of AtomParser::map_xmlns() WP 5.8.2

public static function map_xmlns($p, $n) {
	$xd = "xmlns";
	if( 0 < strlen($n[0]) ) {
		$xd .= ":{$n[0]}";
	}
	return "{$xd}=\"{$n[1]}\"";
}