ReflectionType::allowsNullChecks if null is allowed Description
public bool ReflectionType::allowsNull
( void
)
Checks whether the parameter allows ParametersThis function has no parameters. Return Values
Examples
Example #1 ReflectionType::allowsNull example
<?php The above example will output something similar to: bool(false) bool(true) See Also
|