Q:

What will be the output of the following PHP code?

0

What will be the output of the following PHP code?

<?php
    $arr = array ("picture1.JPG", "picture2.jpg",
    "Picture10.jpg", "picture20.jpg");
    sort($arr);
    print_r($arr);
    ?>

  1. Array ( [0] => picture1.JPG [1] => Picture10.jpg [2] => picture2.jpg [3] => picture20.jpg )
  2. Array ( [0] => picture1.JPG [1] => picture2.jpg [2] => Picture10.jpg [3] => picture20.jpg )
  3. Array ( [0] => Picture10.jpg [1] => picture1.JPG [2] => picture2.jpg [3] => picture20.jpg )
  4. Array ( [0] => Picture10.jpg [1] => picture1.JPG [2] => picture20.jpg [3] => picture2.jpg )

All Answers

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

 (c).Array ( [0] => Picture10.jpg [1] => picture1.JPG [2] => picture2.jpg [3] => picture20.jpg )

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

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now