Php error

I’m trying to fix this php error:

Parse error: syntax error, unexpected ‘"’, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/shop/public_html/extensions/recently_added.php on line 109

line 109 in recently_added.php is:

$strProductTemplate = str_replace(“[PRODUCT_LINK]”, CreateUrl(“index.php?p=.$arrProduct[“username”]&mod=products&ID=”.$arrProduct[“id”]) ,$strProductTemplate);

how to fix the above error

Simple make sure you close your quotes, do your concatenation and then reopen your quotes.

$strProductTemplate = str_replace("[PRODUCT_LINK]", CreateUrl("index.php?p=".$arrProduct["username"]."&mod=products&ID=".$arrProduct["id"]) ,$strProductTemplate);