str_replace

Replaces all occurrences of search string with replacement string.

Parameters

main.php
PHP 8.4 | UTF-8
Ready
Line: 1, Column: 1

Return Values

Notes

Changelog

Related Functions

trim

String

Returns a string with whitespace (or other characters) stripped from the beginning and end of string.

cleanwhitespacesanitize

Converts special characters to HTML entities to prevent XSS attacks and ensure safe HTML output.

securityxsssanitize

filter_var

Validation

Filters a variable with a specified filter, used for validating and sanitizing data.

validatesanitizesecurity

Returns all values from an array with numeric keys, effectively reindexing the array.

valuesreindexclean

strtr

String

Translates characters or replaces substrings in a string using either character mapping or replacement pairs.

replacetranslatesubstitute

Performs a regular expression search and replace operation on a string or array of strings.

regexpatternreplace