πŸ“Š PHP
Q. what is the output of below program?
Code:
<?php
$arr = array(13, 14, 22, 11, -3);
sort($arr);

$arrLen = count($arr);
for($x = 0; $x < $arrLen; $x++) {
    echo " ".$arr[$x];

}
?>
  • (A) -3 11 13 14 22
  • (B) -3 22 14 13 11
  • (C) 3 11 13 14 22
  • (D) 11 13 14 22 -3
πŸ’¬ Discuss
βœ… Correct Answer: (A) -3 11 13 14 22

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
103469
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
87%
Success Rate