PHP Tutorial
PHP str_replace() function, run and write PHP code.
PHP str_replace() function - online editor.
The str_replace() function replaces some characters with other characters in a string.
Syntax
str_replace(find,replace,string,count)
Tags: Syntax
str_replace(find,replace,string,count)
Exemple :
Replace the characters
"language" in the string "Hello to you! Learn PHP language with Agernic.com" with "code":
Replace the characters
"language" in the string "Hello to you! Learn PHP language with Agernic.com" with "code":
<?php
echo str_replace("language","code","Hello to you!
Learn PHP language with Agernic.com");
?>
php str_replace function 1
PHP str_replace() function
PHP Functons
PHP count() FunctionPHP define() function
PHP empty() Function
PHP explode() function
PHP html_entity_decode() function
PHP htmlentities() function
PHP htmlspecialchars_decode() function
PHP htmlspecialchars() function
PHP implode() function
PHP isset() Function
PHP lcfirst() function
PHP ltrim() function
PHP md5() function
PHP print() function
PHP printf() function
PHP rtrim() function
PHP similar_text() function
PHP str_repeat() function
PHP str_replace() function
PHP str_split() function
PHP strcmp() function
PHP strip_tags() function
PHP strlen online function
PHP strrchr() Function
PHP strstr() function
PHP strtolower() function
PHP strtoupper() function
PHP substr() function
PHP trim() function
PHP ucfirst() function