phpday 2027 - Call for Papers

XMLReader::lookupNamespace

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

XMLReader::lookupNamespace — Lookup namespace for a prefix

Description

public function XMLReader::lookupNamespace(string $prefix): ?string

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.

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top