How to seperate the string of the variable in PHP from requested word
<pre><code> $t = ABCDEFPN03KSASDEID;
 $r = stristr($t, 'PN03', true);

 My Value is $r = ABCDEF
 and in if condition while i plan to seperate it throws output wrong
 But i want output $s = PNO3KSASDEID like this
</code></pre>

<p>My code:<br>
(I used variable as my own)</p>

<pre><code>$r = stristr($t, 'PN03', true);
if( ($s = substr($t, 'PNO3', false)) == true) {
    $s = stristr($t, 'PNO3', false);
    print_r($s);
}
</code></pre>

<p>output: PN03KSASDEID is needed. </p>

<p>Please suggest me solution.</p>