I have a PHP array similar to this:
0 => \"red\", 1 => \"green\", 2 => \"blue\", 3 => \"yellow\"
I want to move yellow to index
$a = array('red','green', 'blue','yellow'); $b = array_reverse( $a );
If your question is how to make the last become the first.