src/Twig/ArrayExtension.php
/**
     * Randomly shuffle the contents of a passed array.
     */
Randomly shuffle the contents of a passed array.
Randomly shuffle the contents of a passed array .
public function shuffle($array)
    {
        $array = $this->getArray($array);
        if (is_array($array)) {
            shuffle($array);
        }
        return $array;
    }
public function shuffle ( $ array ) { $ array = $ this -> getArray ( $ array ) ; if ( is_array ( $ array ) ) { shuffle ( $ array ) ; } return $ array ; }
Randomly shuffle the contents of a passed array.
Randomly shuffle the contents of a passed array .