[Solved] $ sign in PHP – is there a way around?


Erm, no. That’s part of the PHP syntax. Not really any way around it.

In response to the edit:

There would be no way for the IDE to know what is a variable and what isn’t. I suppose you could use your own symbol in replace of a $ and then replace all instances of that with a $. You could even compile the PHP script with the same method using another language that you are comfortable with.

However, the best answer would be to either get comfortable with it, or use another server side language. You could try and circumnavigate the syntax but in the end you are only really using more time to do so.

There are plenty to choose from. I know a lot of PHP devs that have migrated to Ruby for the syntax alone.

7

solved $ sign in PHP – is there a way around?