php8.5
Home/ Manual/ reflection / reflectionfunctionabstract/ ReflectionFunctionAbstract::inNamespace

ReflectionFunctionAbstract::inNamespace

PHP function Edit on GitHub ✎

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

Checks if function in namespace

Description

ReflectionFunctionAbstract::inNamespace(): bool

Checks whether a function is defined in a namespace.

Parameters Parameters

Return Values

true if it's in a namespace, otherwise false

See Also

  • ReflectionFunctionAbstract::getNamespaceName
  • namespaces

Source: reference/reflection/reflectionfunctionabstract/innamespace.xml · from the official PHP manual (php/doc-en)