PHP Function List
str-replace() doesn't exist. Closest matches:
- str_replace
- str_ireplace
- substr_replace
- preg_replace
- ereg_replace
- array_replace
- eregi_replace
- str_repeat
- dba_replace
- mb_ereg_replace
- stripslashes
- mb_eregi_replace
- pspell_store_replacement
- diskfreespace
- stripcslashes
- strlen
- strrev
- sqlsrv_prepare
- stats_dens_laplace
- xslt_create
Site Search Results
-
如果 search 和 replace 为数组,那么 str_replace() 将对 subject 做二者的映射替换。如果 replace 的值的个数少于 search 的个数,多余的替换将使用空字符串来进行。如果 search 是一个数组而 replace 是一个字符串 ...
-
If search and replace are arrays, then str_replace() takes a value from each array and uses them to search and replace on subject. If replace has fewer values than search, then an empty string is used for the rest of replacement values.
-
After that it again chops the string to the position where the last white space was found and replace it with our desired filler: <?php function str_replacer ($_string, $_length, $_replacer = ' ...'){ // Remove any HTML tags present in the string
-
$str = preg_replace ('{( ?.)\1{4,}}', '$1$1$1', $str); //Final result: aaabbcccaaad d d ddde''' return $str;}?> To prevent any repetitions of characters, you only need this: <?php $str = preg_replace ('{(.)\1+}', '$1', $str);
-
str_replace() retourne une chaîne ou un tableau, dont toutes les occurrences de search dans subject ont été remplacées par replace. Si vous n'avez pas besoin de règles de remplacement compliquées (comme les expressions rationnelles ...
-
Se search e replace são arrays, então str_replace() pega o valor de cada array e os usa para fazer a pesquisa e a substituição em subject. Se replace tem menos valores do que search, então uma string vazia é usada para o restante dos ...
-
search と replace が配列の場合、str_replace() は各配列から値をひとつ取り出し、 subject 上で検索と置換を行うために使用します。 replace の値が search よりも少ない場合、 置換される値の残りの ...
-
strip_tags() appears to become nauseated at the site of a <!DOCTYPE> declaration (at least in PHP 4.3.1). You might want to do something like: $html = str_replace('<!DOCTYPE','<DOCTYPE',$html); before processing with strip_tags().
-
for($control = 0; $control < 32; $control++) { if ($control != 9 && $control != 10) { $tab_chr[]= chr($control) ; }} $tab_chr[]= chr(127) ; $string = str_replace($tab_chr, '', $string);
-
See Also htmlspecialchars() - Convert special characters to HTML entities htmlentities() - Convert all applicable characters to HTML entities wordwrap() - Wraps a string to a given number of characters str_replace() - Replace all occurrences of the ...

Other forms of search
To search the string "str-replace()" using other options, try searching:
- Only the documentation
- Only this mirror
- The entire php.net domain
- pear.php.net
- pecl.php.net
- The Bug DB
- php-general mailing list
- Internals mailing list
- Documentation mailing list
For a quick overview over all documented PHP functions, click here.
