ReflectionParameter::isOptional

( excerpt from http://php

public function isOptional(): bool;

net/manual/en/reflectionparameter.isoptional.php )

Checks if the parameter is optional.

Return Values

  • bool - TRUE if the parameter is optional, otherwise FALSE