I am working on Sublime Text. I have this problem very often.
<?php
foreach ($data['products'] as $product) {
$totalPrArray[] = $product['total'];
$totalVatArray[] = $product['tax'];
}
?>
Output: PHP Parse error: syntax error, unexpected '$product' (T_VARIABLE) in Standard input code on line 4
Can you see any problem?
Thanks...
I found a Solution: Sublime Text > Preferences > Settings
Add the following line:
"draw_white_space": "all",