Q:

What will be the output of the following PHP code?

belongs to collection: BASICS OF PHP MCQ

0

What will be the output of the following PHP code?

<?php
    $user = array("Ashley", "Bale", "Shrek", "Blank");
    for ($x=0; $x < count($user); $x++) {
        if ($user[$x] == "Shrek") continue;
            printf ($user[$x]); 
    }
    ?>

  1. AshleyBale
  2. AshleyBaleBlank
  3. ShrekBlank
  4. Shrek

All Answers

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

 (b).AshleyBaleBlank

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
If $a = 12 what will be returned when ($a == 12) ?... >>
<< Which of the looping statements is/are supported b...