How to find a character using index in PHP string? : <p>I have a string in PHP code like this:</p>

<pre><code>$string = "This is a PHP code";
</code></pre>

<p>I want to find a character at index 3 in above string. And output must be:</p>

<pre><code>s
</code></pre>

<p>Is there any idea to achieve this goal ?</p>
