PHP str_replace Boyer Option

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.

Author: fyhao

Jebsen & Jessen Comms Singapore INTI University College Bsc (Hon) of Computer Science, Coventry University

Leave a Reply