News for hackers. Stuff that matters.
Re:Modern PHP Cheat Sheet by syberspace on Thursday November 25, 2021 @07:16AM (#29340687)
I've gotten into the habit of generally using single quoted strings (with 'around them') which alleviates most problems with escaping double quotes. And for the odd string that needs to have a single quote inside I switch back to double quoting.

This approach also has the added bonus of stopping PHP from accidentally evaluating something inside the strings.

There are no comments on this comment yet.