When working with string variables in PHP, single quotes and double quotes can impact how the string is read.
This video talks about HEREDOC, NOWDOC, single quotes and double quotes in PHP when dealing with strings.

Code GIST: https://gist.github.com/prof3ssorSt3v3/8db216fb88a395819607375fac5278e5

source