I have an string:
$text =array();
$text[0] = "Microsoft Windows Phone 7.5 Mango";
$text[1] = "Microsoft Windows Phone 7";
for($i=0; $i<2; $i++){
preg_match_all('/(Microsoft Windows)<\/i>\s*(.*)/', $text[$i], $value) ;
print_r($value);
}
When i print_r($value) is result is array() array(), how to fix it ?
Remove
<\/i>that’s a closing HTML tag that does not appear in the input strings.