Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<XMLReader::isValidXMLReader::moveToAttribute>
^XMLReaderLast updated: Mon, 26 Oct 2026

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.

<XMLReader::isValidXMLReader::moveToAttribute>
^XMLReaderLast updated: Mon, 26 Oct 2026