Q:

What will be the output of the following PHP code?

0

What will be the output of the following PHP code?

<?php
    $fruits = array ("mango", "apple", "peach", "pear");
    $fruits = asort ($fruits);
    printr ($fruits);
    ?>

  1. Array ( [1] => apple [0] => mango [2] => peach [3] => pear )
  2. Array ( [0] => apple [1] => mango [2] => peach [3] => pear )
  3. Error
  4. Array ( [1] => apple [0] => mango [3] => peach [2] => pear )

All Answers

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

 (a).Array ( [1] => apple [0] => mango [2] => peach [3] => pear )

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