The PHP str_replace function signature
proto mixed str_replace(mixed search, mixed replace, mixed subject [, bool boyer])
It seem that PHP support boyer as an option (toggle on/off)
Boyer-Moore is a faster algorithm in search and replace, especially in large text search, mostly used in text editor.