function fname($name,$status = 'user'){
echo 'Hello, '.$name.'<br>';
echo 'You are '.$status.'<br>';
$name = 'Peter';
}
function value($name,$status = 'user'){
return 'Hello, '.$name.'<br>You are '.$status.'<br>';
}
$name = 'Zoya';
fname('Mike');
fname('John');
fname($name,'admin');
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.