<<< Previous question <<< Question ID#0394.md >>> Next question >>>
Remembering that keys are not reset when using natsort(), what is the output of the following PHP script?
$filenames = array(
'img12.png',
'img7.png',
'img21.png',
'img1.png'
);
natsort($filenames);
$values = array_values($filenames);
echo $values[1];
Enter the exact script output
- A) img7.png
- B) img12.png
- C) img121.png
- D) img1.png
Answer
Answer: A