I'm making a little hangman game, and I want to sort the guesses the person makes in order of the actual word; Here is my code:
$word = "peach";
$_SESSION['letters'] = str_split($word);
ˆThat is where I make the word into an array, and I want when correct letters are added to an array, that they be sorted in order of the word. Is there any way I could do this, or another way I could write it? Thank you for your help.