Return

return ends the current method, and sends back a produced value to the calling module. Execution resumes at the expression following the called module’s invocation.

<?php

function foo() {
    if (rand(0, 1)) {
        return 'tail';
    }

    return 'face';
}

echo foo();

?>

Documentation

Related : Functions, Method, Closure