Q:

What will happen in this function call?

belongs to collection: ARRAYS AND FUNCTIONS IN PHP MCQ

0

What will happen in this function call?

<?php
    function calc($price, $tax) 
    {
        $total = $price + $tax;
    }
    $pricetag = 15;
    $taxtag = 3;
    calc($pricetag, $taxtag); 
    ?>

  1. Call By Value
  2. Call By Reference
  3. Default Argument Value
  4. Type Hinting

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (a).Call By Value

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

ARRAYS AND FUNCTIONS IN PHP MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What will be the output of the following PHP code?... >>
<< Type Hinting was introduced in which version of PH...