hi, i've been trying to solve this but no luck. This is my code
$replace1 =str_replace('hreflang=\"'.$arr['variantslang1hid'].'\" lang=\"'.$arr['variantslang1hid'].'\"','hreflang=\"'.$arr['variantslang1'].'\" lang=\"'.$arr['variantslang1'].'\"',$replace1);
it should replace but no. i'm not escaping "" properly. how can i solve this? help much appreciated!