return
return
returns program control to the calling module.
Execution resumes at the expression following the called module's invocation.
return
If called from within a function, the
statement immediately ends execution of the current function, and
returns its argument as the value of the function
call. also ends the execution of
an statement or script file.
return``return``eval
If called from the global scope, then execution of the current
script file is ended. If the current script file was
d or d,
then control is passed back to the calling file. Furthermore, if
the current script file was d, then
the value given to will be returned as
the value of the call. If
is called from within the main script
file, then script execution ends. If the current script file was
named by the or
configuration options in php.ini,
then that script file's execution is ended.
include``require``include``return``include``returnauto_prepend_fileauto_append_file
For more information, see . Returning values
Opmerking: > Note that since is a language construct and not a function, the parentheses surrounding its argument are not required and their use is discouraged.
return
Opmerking: > If no parameter is supplied, then the parentheses must be omitted and null will be returned. Calling with parentheses but with no arguments will result in a parse error.
return
As of PHP 7.1.0, return statements without an argument in functions which declare a return type trigger ,
unless the return type is , in which case return statements
with an argument trigger that error.
E_COMPILE_ERROR``void