title: How to trim the characters from the start of echo?
body: <p>I have </p>
  
  <pre><code>&lt;?php echo $img_url; ?&gt;
  </code></pre>
  
  <p>This outputs onto my page: <a href="http://www.website.com/folder/tree" rel="nofollow">http://www.website.com/folder/tree</a></p>
  
  <p>How can I truncate/trimthe first 30 characters so it only outputs 'tree' and beyond that how can I output tree capitalized? As: Tree</p>
  
  <p>All the guides I have found eliminate characters from the end of the output or specific characters or white spaces, I want to trim X amount of characters from the start and then capitalize what's left.</p>
  
  <p>Alternatively if trimming the first X amount of characters can't be done can I trim a regular expression say if <a href="http://www.website.com/folder/" rel="nofollow">http://www.website.com/folder/</a> was always present, can I remove that and then capitalize?</p>
  
  <p>Thanks</p>