how to reverse array in laravel code example
Example: reverse array laravel
$a = array( "a" => "Volvo", "b" => "BMW", "c" => "Toyota" );
array_reverse($a)
#output : Array ( [c] => Toyota, [b] => BMW, [a] => Volvo )
$a = array( "a" => "Volvo", "b" => "BMW", "c" => "Toyota" );
array_reverse($a)
#output : Array ( [c] => Toyota, [b] => BMW, [a] => Volvo )