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