replace full stringwith anther string php code example Example: str_replace php echo str_replace("worss","world","Hello worss in PHP!!");