Show only the three chars after - in php
<p>So i have reference numbers that look like this:</p>

<pre><code>-76527921
O-2323232323
BPP-76527921
EEFS-23232323
</code></pre>

<p>I wish to output the three numbers after the -.</p>

<p>So in the first case it should output 765 and second 232 etc..</p>

<p>I have tried: </p>

<pre><code>echo substr($ref["refno"], 3, 3);
</code></pre>

<p>But since the prefix (the BPP, O, EEFS or none in this example)  is custom and can be more/less than three chars, it does not work right.</p>

<p>How can i do this?</p>
