When I first started doing PHP back in 2000, PHP4 was brand new. I did some extensive testing to figure out the best way to echo strings. It turned out that the best way was using single quotes, because otherwise the PHP parser parsed the string for variables.
In modern times, this is significantly different. Good to know I don’t have to be picky about my single or double quotes anymore.
No comments yet.
If you enjoy the content, consider subscribing to the feed(s).
Jump to comments