Replace string in php
<p>I have this string:</p>

<p>525,294,475,215,365,745</p>

<p>and i need to remove 475..and comma.
and if i need to remove first number i need to remove also the next comma, also for last.
I can i do?
a regular expression?
thx</p>
