mb_str_replace
The mb_str_replace() implementation., (*1)
, (*2)
Install
-
Set up composer.
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar require jp3cki/mb_str_replace
- You can find the source in
vendor/jp3cki/mb_str_replace/src
.
Other ways:
* Use as submodule (see git manual)
* Copy the source into your development directory (DO NOT rewrite copyright, see License section), (*3)
Use
If using composer
You can use mb_str_replace
function after require('vendor/autoload.php')
., (*4)
If not using composer
require
or include
the source., (*5)
require_once('/path/to/mb_str_replace.function.php');
API
function mb_str_replace(
string|array $search,
string|array $replace,
string|array $subject,
string $encoding = 'auto'
) : string|array
Please refer str_replace., (*6)
$encoding
= auto
means "use internal-encoding.", (*7)
Note: This module doesn't support $count
parameter., (*8)
License
The MIT License (MIT)
Copyright (C) 2006,2007,2011,2012,2015 by AIZAWA Hina <hina@bouhime.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.