Skip to content

Instantly share code, notes, and snippets.

@vielhuber
Last active February 15, 2024 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vielhuber/04dc25278b082cb0c81e to your computer and use it in GitHub Desktop.
Save vielhuber/04dc25278b082cb0c81e to your computer and use it in GitHub Desktop.
get next letter in alphabet #php
<?php
$letter = 'A';
echo ++$letter; // outputs 'B'
echo chr(ord($letter) + 3); // outputs 'E'
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment