Error when get data using regex in php
<p>I have an string:</p>

<pre><code>$text =array();
$text[0] = "Microsoft Windows Phone 7.5 Mango";
$text[1] = "Microsoft Windows Phone 7";


for($i=0; $i&lt;2; $i++){
    preg_match_all('/(Microsoft Windows)&lt;\/i&gt;\s*(.*)/', $text[$i], $value) ;
    print_r($value);
}
</code></pre>

<p>When i print_r($value) is result is array() array(), how to fix it ?</p>
