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
+ ExplanationThe natsort() function uses a “natural ordering” algorithm to sort the contents of an array, rather than a simple binary comparison between the contents of each element. In fact, in this example the array is not even touched, since its elements are already in what could be considered a “natural” order. Therefore, Answer A is correct.