So I think a switch might not be the most appropriate method of doing this, how else could I do it? Basically I want to break the string into single letters, then pass values for each letter to a new variable. What I have so far (with most letters taken out, so you can get the gist but I don't fill the screen):
$word = $_POST["word"];
$word_value = 0;
$word_array = str_split($word);
switch ($word_array){
case "a":
case "t":
$word_value++;
break;
case "g":
case "d":
$word_value +2;
break;
}
Thanks in advance!