<?php
function foo() {
$a = "abc";
return $a;
}
$b = foo();
?>
<?php
function foo() {
return 3;
}
function bar(&$arg) {
$arg = "banana";
}
bar(foo());
?>
<?php
function & blah($arg) {
if(strlen($arg)) {
return $arg.'d';
}
else return null;
}
$foo = "abc";
$a = blah($foo);
echo $a;
?>