[SOLVED] probably stupid
Posted: Fri Apr 16, 2004 11:18 pm
Now this doesn't seem like it would be aa difficult problem to solve but for the life of me I can't figure it out. Here's the code snippet:
I keep getting this error:
Any ideas?
holly
?>
Code: Select all
<?php
$langFromArray[] = "";
for($i = 0; $i <2; $i++) {
$langFromArray[$i] = $myVars[$i];
}
$langFrom = $langFromArray[0] . langFromArray[1];
print("This was translated from " . $langFrom ".");
?>180 is the line inside of the for loop.Parse error: parse error, unexpected '[' in f:\student-iat\dynamic\hsphar\homework\translationservice\hermesita-d3-go.php on line 180
Any ideas?
holly
?>