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
 
<ReflectionParameterReflectionParameter::canBePassedByValue>
^ReflectionParameterLast updated: Mon, 26 Oct 2026

ReflectionParameter::allowsNull

(PHP 5, PHP 7, PHP 8)

ReflectionParameter::allowsNull — Checks if null is allowed

Description

public function ReflectionParameter::allowsNull(): bool

Checks whether the parameter allows null.

Parameters

This function has no parameters.

Return Values

true if null is allowed, otherwise false

See Also


<ReflectionParameterReflectionParameter::canBePassedByValue>
^ReflectionParameterLast updated: Mon, 26 Oct 2026