Q:

What will be the output of the following code?

belongs to collection: BASICS OF PHP MCQ

0

What will be the output of the following code?

  <?php
    function track() {
    static $count = 0;
    $count++;
    echo $count;
    }
    track();
    track();
    track();
    ?>

  1. 123
  2. 32
  3. 000
  4. 321

All Answers

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

(a).123

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

total answers (1)

BASICS OF 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?... >>
<< Which statement will output $x on the screen?...