Skip to main content
3 of 6
added 5 characters in body; added 42 characters in body
Kevin Brown-Silva
  • 6.5k
  • 5
  • 43
  • 59

PHP, 82 29 24 characters

<?=strrev(fgets(STDIN)); 

82 -> 29: The new line character is preserved when reversed with strrev.
29 -> 24: Uses the shortcut syntax now

Kevin Brown-Silva
  • 6.5k
  • 5
  • 43
  • 59