I hope this question hasn't been asked yet.
Time to time I get into the same problem while I'm coding, which is when I'm using two or more && logical operators like this:
if ($sCategory['sub_category_name'] == $subCat && $action == 'edit') {
//Do stuff here
}
I get the error:
PHP Parse error: syntax error, unexpected '$action' (T_VARIABLE)
As reading some of other topics, I saw that sometimes there are hidden characters which cause the problem, but I did not find any other solution to mine. I'm using Sublime Text 3 on an iMac.
Thanks in advance