php foreach first element

Solutions on MaxInterview for php foreach first element by the best coders in the world