PHP sees the $ and thinks it means there's a variable coming - so it treats $1 as a variable and prints it's content. Of course, since it doesn't exist nothing gets printed.
You can get around this by 'escaping' the $ by using \$, this tells PHP to treat the $ as a literal, ie just print it.
HTH.