how to replace a character in a string in ph code example Example: str_replace php echo str_replace("worss","world","Hello worss in PHP!!");