Decoding strings in PHP
<p>I am working on a PHP application that has to parse strings being sent by another program. the problem is that some strings have octal characters and some other escapes in the middle.</p>

<p>So instead of "script>XYZ", I am getting:</p>

<p><code>\103RI\120T&gt;XYZ%6En \151\156 d%6Fcu\155%65n..</code></p>

<p>And I need to print back this string decoded... I tried using octdec, url_decode, etc, but one only works with one char and the other doesn't decode octal... Anyone have suggestions?</p>
