title: Writing a file using UCS-2 Little Endian encoding
body: <p>I need to write some info in a file with UCS-2 Little Endian with PHP, so that when I open up that file in my editor, the encoding is set to UCS-2 Little Endian as shown in attached picture.</p>
  
  <p>What should I do?</p>
  
  <p><img src="https://i.stack.imgur.com/VtSdO.jpg" alt="enter image description here"></p>