Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether a variable is an array
<?php is_array(mixed $value): bool
<?php     private function assertSameAfterSorting($expected, $actual, $message = '')

    {

        if (is_array($actual)) {

            sort($actual);

        }
<?php     private function assertSameAfterSorting($expected, $actual, $message = '')

    {

        if (is_array($expected)) {

            ksort($expected);

        }
<?php             ksort($expected);

        }



        if (is_array($actual)) {

            ksort($actual);

        }