Problem with funtion
Posted: Thu Jul 10, 2003 12:34 am
What's wrong with my function:
It doesn't echo anything. I'm new to functions so this is probably really bad, but bear with me please.
Code: Select all
$phone_num = '';
function empty_var($var) {
if(empty($var)) {
$var = 'This variable is empty<br>';
}
}
empty_var($phone_num);
echo $phone_num;