A
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];
}
?>
$arr = array(13, 14, 22, 11, -3);
sort($arr);
$arrLen = count($arr);
for($x = 0; $x < $arrLen; $x++) {
echo " ".$arr[$x];
}
?>
- Correct Answer - Option(A)
- Views: 27
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.