Skip to content

Instantly share code, notes, and snippets.

@unlox775
unlox775 / ethan_code_treasure_hunt.php
Created December 25, 2019 05:08
Ethan code treasure hunt 2019
<?php
$str = "00 Ethan Buchanan 99";
// The CIPHER...
// 1. Look at the ascii value ord() of the first digit (e.g. "a" = 97)
// 2. Find the char in the string that corresponds to that number (i.e. the 97th char)
// 3. If the string is shorter than that number, wrap around to the first number using MOD()
// 4. Move that char to be the first char
// 5. Repeat
//