Question:What is the output?
<?php
$array = array (10, 20, 10, 30, 20, 40, 20, 40);
asort ($array, SORT_STRING);
print_r($array);
?>
 

A Array ( [0] => 10 [2] => 10 [4] => 20 [1] => 20 [6] => 20 [3] => 30 [7] => 40 [5] => 40 ) 

B Array ( [0] => 10 [1] => 10 [2] => 20 [3] => 20 [4] => 20 [5] => 30 [6] => 40 [7] => 40 ) 

C Array ( [10] => 0 [10] => 1 [20] => 2 [20] => 3 [20] => 4 [30] => 5 [40] => 6 [40] => 7 ) 

D Array ( [0] => 10 [1] => 20[2] => 10[3] => 30[4] => 20 [5] => 40[6] => 20[7] => 40 ) 

+ Answer
+ Report
Total Preview: 907

Copyright © 2024. Powered by Intellect Software Ltd