Checks if null is allowed

# ReflectionParameter::allowsNull

(PHP 5, PHP 7, PHP 8)

ReflectionParameter::allowsNull — Checks if null is allowed

### Description

public 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

- ReflectionParameter::isOptional() - Checks if optional

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open