title: PHP adding $ signs into strings without it being a variable?
body: <p>I'm making a setup page where people can write their database login etc and that will then create a config.php file on their webserver with the info but obviously I can't just write</p>
  
  <pre><code>$file = fopen("config.php", "w");
  fwrite($file, "$dbName = $dbName");
  </code></pre>
  
  <p>I actually tried</p>
  
  <pre><code>$file = fopen("config.php", "w");
  fwrite($file, "$" . "dbName = $dbName");
  </code></pre>
  
  <p>But that doesn't work either.</p>
  
  <p>Any way to store it as a PHP variable in a file I write using PHP?</p>