PHP MCQ Number 01293

PHP MCQ Set 1 1. What will be the output of the following PHP code? <?php function calc($price, $tax=””) { $total = $price + ($price * $tax); echo “$total”; } calc(42); ?> a) Error b) 0 c) 42 d) 84 AnswerAnswer: c [Reason:] You can designate certain arguments as optional by placing them at the…


This content is for paid premium members only.
You can view complete answer after activation your membership.


Need only one answers. Simply buy single day pass and email. We will send answers for this question.
Login Buy membership