PHP » GoLang |
login |
register |
about
|
GoLang ReflectionFunctionAbstract::hasReturnType
request it (337)
GoLang replacement for PHP's ReflectionFunctionAbstract::hasReturnType
[edit | history]
PHP ReflectionFunctionAbstract::hasReturnTypePHP original manual for ReflectionFunctionAbstract::hasReturnType [ show | php.net ]ReflectionFunctionAbstract::hasReturnType(PHP 7) ReflectionFunctionAbstract::hasReturnType — Checks if the function has a specified return type Description
public bool ReflectionFunctionAbstract::hasReturnType
( void
)
Checks whether the reflected function has a return type specified. ParametersThis function has no parameters. Return Values
Returns Examples
Example #1 ReflectionFunctionAbstract::hasReturnType() example
<?php The above example will output: bool(true) Example #2 Usage on built-in functions
<?php The above example will output: bool(false) This is because many internal functions do not have types specified for their parameters or return values. It is therefore best to avoid using this method on built-in functions. |
more
Recently updated
more
Most requested
more
Last requests
|