On this page
AtomParser::map_xmlns( indexish $p, array $n ): string
Map XML namespace to string.
Parameters
$pindexish Required-
XML Namespace element index
$narray Required-
Two-element array pair. [ 0 => {namespace}, 1 => {url} ]
Return
string 'xmlns="{url}"' or 'xmlns:{namespace}="{url}"'
Source
File: wp-includes/atomlib.php. View all references
public static function map_xmlns($p, $n) {
$xd = "xmlns";
if( 0 < strlen($n[0]) ) {
$xd .= ":{$n[0]}";
}
return "{$xd}=\"{$n[1]}\"";
}
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/atomparser/map_xmlns