title: What is the simplest of checking first and last character of a string in php
body: <p>What is the simplest way of checking whether the first letter of a string <code>$str</code> is <code>'a'</code> and the last letter is <code>'a'</code> too?</p>