Today i was working with some codes when I met this error to make it simplify I have made an simple code which returns this error:
$i=1;
echo $i*5."<br/>";
Error
syntax error, unexpected '"<br/>"' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ';'
Here I am trying to multiply an integer variable with an integer value and then add some string afterwords.
the solution I found to escape this error is to simply replace $i*5 by 5*$i but it my question is why does this happens.In my scope ov view there is no syntax error but if there is any please let me know.