small question in how to cut words
<pre><code>&lt;?php
    $string = 
    '--os
    windows,linux
    --os
    Mac,Linux
    --os
    Mac,windows
    ';

    $str__len = strlen('--os');
    $strr_pos = strrpos($string,'--os') + $str__len;
    $subb_str = substr($string,$strr_pos,100000);
    echo $subb_str;
    /*
    OUTPUT
    Mac,windows
    */

?&gt;
</code></pre>

<p>but how to get the center and first os (Mac,Linux) and (windows,linux)?
i have small idea but it stupid and slowly!</p>

<p>Note:
The $string varibale is contain big data! 
it only contain three --os tag
but each --os tag contain about 1000 line!
So, i want get profissional code to avoid the slowing!</p>

<p>Thank you</p>
