strtr ($str, array ('a' => '<replacement>'));或者更精确地回答您的问题:
strtr ("Hello, my name is Santa", array ('a' => '<replacement>'));
strtr ($str, array ('a' => '<replacement>'));或者更精确地回答您的问题:
strtr ("Hello, my name is Santa", array ('a' => '<replacement>'));