Now I’m just trying to take the first two letters from an array and print them. The string that the characters are coming from is coming from the $_POST array and is the 0 element. This is what I have:
[code=php]
$langFromArray[] = “”;
for($i = 0; $i <2; $i++) {
$langFromArray[$i] = $myVars[0][$i];
}
$langFrom = $langFromArray[0] . langFromArray[1];
print(“This was translated from ” . $langFrom “.”);
PHP]
the error says, “unexpected ‘[‘ ” on the line that begins, “$langFrom = “. Does PHP not handle strings as arrays, b/c that’s all that I can figure…
I’m sure there’s another way to do this so if anyone knows it or sees what I’m doing wrong, I’d appreciate it very much.
thanks, holly