XMLReader::lookupNamespace

(PHP 5 >= 5.1.0, PHP 7)

XMLReader::lookupNamespaceLookup namespace for a prefix

Description

public XMLReader::lookupNamespace ( string $prefix ) : string|null

Lookup in scope namespace for a given prefix.

Parameters

prefix

String containing the prefix.

Return Values

The value of the namespace, or null if no namespace exists.

Changelog

Version Description
8.0.0 This function can no longer return false.

© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/xmlreader.lookupnamespace.php