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
 
<ReflectionFunctionAbstract::hasTentativeReturnTypeReflectionFunctionAbstract::isClosure>
^ReflectionFunctionAbstractLast updated: Mon, 26 Oct 2026

ReflectionFunctionAbstract::inNamespace

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

ReflectionFunctionAbstract::inNamespace — Checks if function in namespace

Description

public function ReflectionFunctionAbstract::inNamespace(): bool

Checks whether a function is defined in a namespace.

Parameters

This function has no parameters.

Return Values

true if it's in a namespace, otherwise false


<ReflectionFunctionAbstract::hasTentativeReturnTypeReflectionFunctionAbstract::isClosure>
^ReflectionFunctionAbstractLast updated: Mon, 26 Oct 2026