Hi Folks Please Help me out on this.

```
$string='1. New ‘benami’ Act to take effect from Nov. [Governance]
1. The Benami Transactions (Prohibition) Amendment Act will come into force 2. New ‘benami’ Act to take effect from Nov. [Governance]
2. The Benami Transactions (Prohibition) Amendment Act will come into force';

for($i=1;$i<=8;$i++)
{
    $string = str_replace($i.'.', "<li>", $string);
}
echo  $string;

```

Above code replace all 1. with li but i need to replace first 1. with h3 and second 1. with li and so on