Question:In what order will the following script output the contents of the $array array?
<?php
$array = array ('a1', 'a3', 'a5', 'a10', 'a20');
natsort ($array);
var_dump ($array);
?>
 

A a1, a3, a5, a10, a20 

B a1, a20, a3, a5, a10 

C a10, a1, a20, a3, a5 

D a1, a10, a5, a20, a3 

E a1, a10, a20, a3, a5 

+ Answer
+ Explanation
+ Report
Total Preview: 929

Copyright © 2024. Powered by Intellect Software Ltd