Created
November 29, 2011 11:12
-
-
Save fetus-hina/1404444 to your computer and use it in GitHub Desktop.
mb_str_replace() 説明ページ用プロトタイプ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* マルチバイト対応 str_replace | |
* | |
* @param mixed $search 検索文字列 | |
* @param mixed $replace 置換文字列 | |
* @param mixed $subject 対象文字列 | |
* @param string $encoding 文字列のエンコーディング(省略: 内部エンコーディング) | |
* | |
* @return mixed subject 内の search を replace で置き換えた文字列 | |
* | |
* @note この関数は配列に対応(search, replace, subject)しています。 | |
*/ | |
function mb_str_replace($search, $replace, $subject, $encoding = 'auto') { /* ... */ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment