I have an array which contains list of color values. Consider below array:
Array
(
[value] => 4
[label] => red
)
Array
(
[value] => 5
[label] => pink
)
Array
(
[value] => 6
[label] => blue
)
Array
(
[value] => 7
[label] => yellow
)
Array
(
[value] => 8
[label] => white
)
Array
(
[value] => 9
[label] => black
)
I want to shift/move color with value Blue at the end of the array.
Array
(
[value] => 6
[label] => blue
)
Should it be on last index of array? Note: The array key is unknown.