How does PHP handle whitespace in syntax like $grad + = 0.0001;?
PHP does not handle whitespace within variable names or operators, so $grad + = 0.0001; would result in a syntax error. To fix this issue, remove the whitespace between the plus sign and the equal sign to ensure proper syntax.
$grad += 0.0001;