Difference between htmlspecialchars_decode and html_entity_decode

There are quite a few similar functions in PHP. Some of them are almost identical like echo and print and some have subtle differences which are not obvious at the first glance. We can put htmlspecialchars_decode and html_entity_decode in this category. There is a lot of confusion between notions of HTML special characters and HTML entities so let’s look into the difference.

Continue reading “Difference between htmlspecialchars_decode and html_entity_decode”

PHP – What is the difference between single and double quotes?

Difference between single and double quotes in PHP can be confusing. Moreover, it can lead to unexpected results, so it’s better to get familiar with it so you can avoid bugs.

Let’s dive into the details…

Continue reading “PHP – What is the difference between single and double quotes?”