According to PHP Documentation
Unlike double-quoted and heredoc syntax, variables and escape sequences for special characters will not expand if they appear in single quotes.
In other words, double-quoted strings extend variables and escape sequences for special characters. Single quotes do not have.
So, in example1, with a single quote string, the string is exactly the same as you see it. Slash and all.
2, \r\t\n, , , . , escape- .