Sifr

日本語

Home » Study » Detail

PHP str_replace

PHP str_replace function command generator.

Generated command

str_replace('find', 'new value', 'source string');

Edit the form @ Arguments and you will take the command above.

the page doesn't detect clause. You should be careful if use (double-)quatation.

Arguments

find:

new value:

source string:

Example

You can get "That will be replaced." if the variables are input bellow.

find
This
new value
That
source string
This will be replaced.

サイドメニュー