티스토리 뷰

str_replace

(PHP 4, PHP 5)

str_replace — Replace all occurrences of the search string with the replacement string


reject note Description

mixed str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] )

This function returns a string or an array with all occurrences of search in subject replaced with the given replace value.

If you don't need fancy replacing rules (like regular expressions), you should always use this function instead of preg_replace().


상세 내용: http://php.net/manual/en/function.str-replace.php








728x90
반응형