Q:

What will be the output of the following PHP code?

belongs to collection: ARRAYS AND FUNCTIONS IN PHP MCQ

0

What will be the output of the following PHP code?

<?php
    $op2 = "blabla";
    function foo($op1)
    {
        echo $op1;
        echo $op2;
    }
    foo("hello");
    ?>

  1. helloblabla
  2. Error
  3. hello
  4. helloblablablabla

All Answers

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

 (c).hello

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
A function in PHP which starts with __ (double und... >>
<< What will be the output of the following PHP code?...