Skip to content

Instantly share code, notes, and snippets.

@kongondo
Forked from vielhuber/index.php
Created February 15, 2024 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kongondo/8e0021e1313c6cc073f650407eb5adde to your computer and use it in GitHub Desktop.
Save kongondo/8e0021e1313c6cc073f650407eb5adde 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