Possible Duplicate:
Difference between single quote and double quote string in php
I have some strings which which are made up of random characters including $ sign, this becomes a problem if the string happens to begin with $ as it is treated as a variable, is there some way around this problem?
<?php
$variable="$&%51a-notaVariable";
?>
Answer 1: Use single quotes instead of double quotes.
Answer 2: If you definitely need to use double quotes for whatever reason, you can escape the dollar sign with a backslash.