title: Encoding a string as UTF-8 with BOM in PHP
body: <p>how can I force PHP to add the BOM when using utf8_encode ?</p>
  
  <p>Here's what I am trying to do:</p>
  
  <pre><code>$zip-&gt;addFromString($filename, utf8_encode($xml));
  </code></pre>
  
  <p>Unfortunately (for me), the result will not have the BOM mark at the beginning. </p>