In the end i made my own function
<?php
function rotate_array($array,$element)
{
$first = array_search($element,$array);
$sl1 = array_slice($array,$first);
$sl2 = array_slice($array,0,$first);
$merge = array_merge($sl1,$sl2);
return $merge;
}
$a = array(0 => "Dog",1 => "Cat",2 => "Horse",3 => "Bird",4 => "Lion");
$first_element = "Bird";
$rotate_array = rotate_array($a,$first_element);
print_r($rotate_array);
?>
Output:
Array ( [0] => Bird [1] => Lion [2] => Dog [3] => Cat [4] => Horse )