if you are seeing an error like this one:

Parse error: parse error, unexpected T_IF in /home/www/mysite/index.php on line 4

then it only means if you look on line 42, you forgot to put a semi-colon

it happen to me, this is how my line looked on line 41

$string = 'my value'

instead it should look like this;

$string = 'my value';