<span class="syntaxdefault"><br /></span><span class="syntaxkeyword"><?</span><span class="syntaxdefault">php <br />$str </span><span class="syntaxkeyword">= </span><span class="syntaxstring">'POP0025030'</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">$str </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">intval</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">str_replace</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'POP'</span><span class="syntaxkeyword">, </span><span class="syntaxstring">''</span><span class="syntaxkeyword">, </span><span class="syntaxdefault">$str</span><span class="syntaxkeyword">));<br />echo </span><span class="syntaxdefault">$str</span><span class="syntaxkeyword">;<br /> </span><span class="syntaxdefault"></span>