I Need to rework an PHP array of time zones. I am trying to move the american timezones to the top of the array. How do you single out iterations and either remove them or reorder the array?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
assuming you know the exact values of americanTimezones and stored those in an array $moveUsToTheTop, and that the current disordered array is $timezones, the following should reposition those values at $moveUsToTheTop at the beginning of the array