I have an array $myArray
Array ( [0] => Apple [1] => Orange [2] => Grape [3] => Plum )
This array is being dynamically pulled, but i need the array content to be in a certain order. for example Grape will always be first, plum will always be second, apple will always be third and orange will need to be last
Array ( [0] => Grape [1] => Plum [2] => Apple [3] => Orange )
And lets say when this is being dynamically made and there are no "Grapes" plum needs to become first then apple, orange. ex
Array ( [0] => Plum [1] => Apple [2] => Orange )
I am not aware how this can be done in php