The remaining sequences \\ \$ \" & \' are all to
allow those characters to be printed in your string. This is
important, because as we have seen already if we use those
characters they have special meaning. Also please note that
a ' can be used in a string if the string is enclosed
by " and vice versa.
This can be very important especially when you are
outputting HTML to a web page, as web page tags need
enclosing parentheses around any attributes specified in the
PHP has a huge amount of functions built into it for
handling strings, unfortunately I don't have the space here
to go over them all. The PHP manual link above has excellent
descriptions of what each of the functions do, as always I
encourage you to explore them and see what they do.
Don't worry if you use a function and it doesn't work as
expected, play with the code until it does. It's all about
playing with the code and understanding what does what.
Until next time
Don't tangle your strings. Check back next week when we'll
cover numbers & maths.