Chapter 10 Question About Variables Inside Of Functions in PHP for the Web: Visual QuickStart Guide (4th Edition) Posted May 29, 2012 I'm not sure if I understand. If I, for example, create this function: function make_full_name($first, $last) { $name = $first . ' ' . $last; } I can't use the $name variable, unless i return it before closing the curly brackets?
Chapter 10 Question About Variables Inside Of Functions
in PHP for the Web: Visual QuickStart Guide (4th Edition)
Posted
I'm not sure if I understand. If I, for example, create this function:
function make_full_name($first, $last) {
$name = $first . ' ' . $last;
}
I can't use the $name variable, unless i return it before closing the curly brackets?