Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 593 Bytes

0563.md

File metadata and controls

24 lines (19 loc) · 593 Bytes

What is the output of the following code block?

$a = "The quick brown fox jumped over the lazy dog.";
$b = array_map("strtoupper", explode(" ", $a));
    
foreach ($b as $value) {
    print "$value ";
}
  • A) THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG.
  • B) A PHP Error
  • C) Array Array Array Array Array Array Array Array Array
  • D) THEQUICKBROWNFOXJUMPEDOVERTHELAZYDOG.
Answer

Answer: A