AtomParser::map_xmlns()

最后更新于:2021-11-25 19:08:46

AtomParser::map_xmlns( indexish$p, array$n)

Map XML namespace to string.

参数

$p

(indexish) (Required) XML Namespace element index

$n

(array) (Required) Two-element array pair. [ 0 => {namespace}, 1 => {url} ]

响应

(string) ‘xmlns=”{url}”‘ or ‘xmlns:{namespace}=”{url}”‘

源文件

文件: gc-includes/atomlib.php

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