Prolem with if function
Posted
by Ryan
on Stack Overflow
See other posts from Stack Overflow
or by Ryan
Published on 2009-04-10T12:44:43Z
Indexed on
2010/05/12
23:44 UTC
Read the original article
Hit count: 158
php
|if-statement
Hi, something seems to be wrong with the first line of this if function, seems alright to me though.
if ($count1 == sizeof($map) && $count2 == sizeof($map[0])){
echo ";";
}else{
echo ",";
}
This is the error I get (line 36 is the first line of the above line.)
Parse error: parse error in C:\wamp\www\game\mapArrayConvertor.php on line 36
EDIT: The OP notes in an answer below that the error was a missing semi-colon on line 35 and not the code included in the question.
© Stack Overflow or respective owner