1--TEST--
2Test natsort(): basic functionality
3--FILE--
4<?php
5/*
6* proto bool natsort ( array &$array )
7* Function is implemented in ext/standard/array.c
8*/
9$array1 = $array2 = array("img12.png", "img10.png", "img2.png", "img1.png");
10sort($array1);
11echo "Standard sorting\n";
12print_r($array1);
13natsort($array2);
14echo "\nNatural order sorting\n";
15print_r($array2);
16?>
17--EXPECT--
18Standard sorting
19Array
20(
21    [0] => img1.png
22    [1] => img10.png
23    [2] => img12.png
24    [3] => img2.png
25)
26
27Natural order sorting
28Array
29(
30    [3] => img1.png
31    [2] => img2.png
32    [1] => img10.png
33    [0] => img12.png
34)
35
36