title: Get last letter from arabic string Php
body: <p>I've been working with Arabic characters for a while now. 
  Look at this:</p>
  
  <pre><code>$string = "السلام";
  </code></pre>
  
  <p>Works perfectly when I print it. </p>
  
  <p>But. I want to get the last letter, "م".
  I've tried</p>
  
  <pre><code>$string[strlen($string]-1)];
  </code></pre>
  
  <p>Tried substring too.</p>
  
  <p>Getting this output: �</p>
  
  <p>SOLVED: 
  Forgot to add: mb_internal_encoding("UTF-8");
  Thanks a lot guys!</p>