Top PHP Logical Interview Questions for Technical Leads

1. Write a code that re-arranges the array given in problem section into the output given in output section

  • The array value which starts with vowel should be placed in even order of the array.
  • The other items should be placed in the odd order of the array.

Note

The order of the output is considered to be based on array keys.

Problem

Output

Solution