PHP » GoLang |
login |
register |
about
|
GoLang ReflectionFunctionAbstract::getReturnType
request it (375)
GoLang replacement for PHP's ReflectionFunctionAbstract::getReturnType
[edit | history]
PHP ReflectionFunctionAbstract::getReturnTypePHP original manual for ReflectionFunctionAbstract::getReturnType [ show | php.net ]ReflectionFunctionAbstract::getReturnType(PHP 7) ReflectionFunctionAbstract::getReturnType — Gets the specified return type of a function DescriptionGets the specified return type of a reflected function. ParametersThis function has no parameters. Return Values
Returns a ReflectionType object if a return type is
specified, Examples
Example #1 ReflectionFunctionAbstract::getReturnType() example
<?php The above example will output: int Example #2 Usage on built-in functions
<?php The above example will output: null 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. See Also
|
more
Recently updated
more
Most requested
more
Last requests
|