title: How to get first 5 characters from string
body: <p>How to get first 5 characters from string using php</p>
  
  <pre><code>$myStr = "HelloWordl";
  </code></pre>
  
  <p>result should be like this</p>
  
  <pre><code>$result = "Hello";
  </code></pre>