PHP - Functions
Identify the bug in this PHP function:
function getValue() {
echo 10;
return 20;
}
$value = getValue();
echo $value;function getValue() {
echo 10;
return 20;
}
$value = getValue();
echo $value;15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions