title: replace first and last character in php
body: <p>A question about php.</p>
  
  <p>If I have variable named $string that contains the word <code>"Testing"</code> I would like the php
  code to delete the first and last character. (So the output would be <code>"estin"</code>).
  I've tried multiple functions for example <code>str_replace</code> and <code>substr</code> but so far I've only managed to delete only the first or only the last character.</p>
  
  <p>I don't know how to delete both the first and last character.</p>