title: PHP text going missing, possible regex issue?
body: <p>I'm attempting to create an automatic installer for a system I have created, but the ONLY issue is the generation of a php file, in which variables simply do not show up.</p>
  
  <p>Here's my code to create the file</p>
  
  <pre><code>&lt;?php
  $content = " &lt;?php
      $sqlHost = '".$host."';
      $sqlUser = '".$user."';
      $sqlPass = '".$pass."';
      $sqlDatabase = '".$db."';
      $sqlTables = array('donate_categories', 'donate_items', 'donate_claim', 'donate_admin');
  
      $connection = new PDO('mysql:host='.$sqlHost.';dbname='.$sqlDatabase.';charset-utf8', $sqlUser, $sqlPass);
      $connection-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  ?&gt;";
  
  $fp = fopen("connection.php", "wb");
  fwrite($fp, $content);
  $fclose($fp);
  ?&gt;
  </code></pre>
  
  <p>as you can see there's php code wrapped in a string there; However the output is a little strange...</p>
  
  <pre><code>&lt;?php
       = 'localhost';
       = 'root';
       = '';
       = 'test';
       = array('donate_categories', 'donate_items', 'donate_claim', 'donate_admin');
  
       = new PDO('mysql:host='..';dbname='..';charset-utf8', , );
      (PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  ?&gt;
  </code></pre>
  
  <p>None of the variables are there, and I've looked up possible issues with this, but I haven't found any. </p>