SomeoneWhoNeedsAnswers
New member
I'm trying to make a form where a user enters letters & numbers to generate a new letter and number combo.
So for instance the form would look like this and the user enters info:
Enter a string: _ _ _ _
$number['4'] = 'T';
$number['3'] = 'E';
$number['2'] = 'S';
So basically when a user enters 4324 in the form it will generate "TEST". But how do I swap each character that the user enters with the value of the array?
So for instance the form would look like this and the user enters info:
Enter a string: _ _ _ _
$number['4'] = 'T';
$number['3'] = 'E';
$number['2'] = 'S';
So basically when a user enters 4324 in the form it will generate "TEST". But how do I swap each character that the user enters with the value of the array?