He's simply showed you two ways of using a variable inside a string.
Take a look at the link in my signature about T_CONSTANT_ENCAPSED_STRING to see more about this. Not many online PHP teaching sites explain it in detail.
My helpful sig is on vacation trying to loose some weight. It got a bit fat and caused a few problems but it will be back at some point!