I'm having a parse error when I upload this code on my server (php 5.5.12):
if (!empty($a = $b)) {...}
The error is :
syntax error, unexpected '=', expecting ')'
I don't have any problem with the same code on MAMP (php 5.5.10). Of course I can easily solve it with this code:
$a = $b;
if (!empty($a)) {...}
But well, the first one should work.
Thank you!
EDIT : I works. I just had a problem with my PHP version.