Here are two versions of the line in the php file:
First version:
if ($projet['sourceDonnees'] === (string)$CONSTANTS['sourceDonnees_saisie']) {
Second version:
if ($projet['sourceDonnees'] === (string)$CONSTANTS['sourceDonnees_saisie']) {
Although they look the same, the first version results in PHP Parse error: syntax error, unexpected T_STRING, while the second version works fine. The difference between the two is that the first version was inserted and modified, and the second version was completely written out manually. What's going on here?
Notes : the line was copied from a text file encoded in UTF-8 and pasted into another text file UTF-8. All operations are performed in gedit, both files written by me in gedit.
Shawn source
share