array_reverse

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Return an array with elements in reverse order
<?php array_reverse(array $array, bool $preserve_keys = false): array
<?php         $testCaseFound = false;

        $class = false;



        foreach (array_reverse($loadedClasses) as $loadedClass) {

            if (

                is_subclass_of($loadedClass, HasPrintableTestCaseName::class)

                || is_subclass_of($loadedClass, TestCase::class)) {
<?php         }



        if (! $testCaseFound) {

            foreach (array_reverse($loadedClasses) as $loadedClass) {

                $offset = 0 - strlen($suiteClassName);



                if (stripos(substr($loadedClass, $offset - 1), '\\'.$suiteClassName) === 0 ||
<?php         $lines = explode(PHP_EOL, $this->buffer);



        $lines = array_reverse($lines);

        $firstLine = array_pop($lines);

        $lines = array_reverse($lines);
<?php         $lines = array_reverse($lines);

        $firstLine = array_pop($lines);

        $lines = array_reverse($lines);



        View::render('components.badge', [

            'type' => $type,
<?php     public function run(): void

    {

        $pipeline = array_reduce(

            array_reverse($this->pipes),

            $this->carry(),

            function (): void {

                call_user_func_array($this->closure, $this->passables);
<?php     public static function after(string $subject, string $search): string

    {

        return $search === '' ? $subject : array_reverse(explode($search, $subject, 2))[0];

    }