PHP validate string lightweight
<p>I want to find the most lightweight solution to validate a string as <code>a letter or number</code> + <code>?</code>. Eg: <code>a?</code> or <code>1?</code> etc.</p>
