Return with a value
suggest change(paraphrased from about_return)
The following methods will have the same values on the pipeline
function foo {
$a = "Hello"
return $a
}
function bar {
$a = "Hello"
$a
return
}
function quux {
$a = "Hello"
$a
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents