Typewriter Monkey solutions

Typewriter Monkey was solved using PHP by 2 contestants. Solution sizes: average 1372 bytes (shortest: 1336; longest: 1408).