strtr ($str, array ('a' => '<replacement>'));
Or to answer your question more precisely:
strtr ("Hello, my name is Santa", array ('a' => '<replacement>'));
More Related Contents:
- PHP string replace match whole word
- how to replace special characters with the ones they’re based on in PHP?
- Replace last occurrence of a string in a string
- Search and replace multiple values with multiple/different values in PHP5?
- PHP remove commas from numeric strings
- PHP function to replace a (i)th-position character
- Search and replace multiple values with multiple/different values in PHP?
- Make all words lowercase and the first letter of each word uppercase
- Truncate a string to first n characters of a string and add three dots if any characters are removed
- What kind of string is this? How do I unserialize this string? [duplicate]
- Array to String PHP?
- Get PHP class property by string
- php String Concatenation, Performance
- How to select first 10 words of a sentence?
- php implode (101) with quotes
- How to convert string to boolean php
- Str_replace for multiple items
- How to create a random string using PHP?
- Best Practices: working with long, multiline strings in PHP?
- How to handle double quotes in string before XPath evaluation?
- How can I split a string in PHP at the nth occurrence of a needle?
- PHP: Split multibyte string (word) into separate characters
- Highlight keywords in a paragraph
- Explode string into array with no empty elements?
- Get the sum of all digits in a numeric string
- Reverse the letters in each word of a string
- How do I get the byte values of a string in PHP?
- Find and replace in a file
- How to validate that a string only contain lowercase letters?
- Remove everything from the first occurrence of a character to the end of a string in PHP