Single Choice
Not Set
QWhat will be the output of the following PHP code?
< ?php
function calc($price, $tax="")
{
$total = $price + ($price * $tax);
echo "$total";
}
calc(42);
?>
ID: #2430
Functions in PHP MCQ
2,255 views
Question Info
#2430Q ID
Not SetDifficulty
Functions in PHP MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
You can designate certain arguments as optional by placing them at the end of the list and assigning them a default value of nothing.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic