Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Sort an array in ascending order
<?php sort(array &$array, int $flags = SORT_REGULAR): true
<?php         $array = array_map('strtolower', $array);




        sort($array);




        $array = array_unique($array);
<?php     private function assertArraysHaveSameValues($expected, $actual)

    {

        sort($expected);

        sort($actual);

        $this->assertEquals($expected, $actual);

    }
<?php     private function assertArraysHaveSameValues($expected, $actual)

    {

        sort($expected);

        sort($actual);

        $this->assertEquals($expected, $actual);

    }

}