"; // Prints: red echo next($colors) . ""; // Prints: green echo pos($colors) . ""; // Prints: green echo end($colors) . ""; // Prints: black echo pos($colors) . ""; // Prints: black echo prev($colors) . ""; // Prints: yellow echo pos($colors) . ""; // Prints: yellow echo reset($colors) . ""; // Prints: red echo pos($colors) . ""; // Prints: red // Getting the current element's key echo key($colors); // Prints: 0 ?>