當前位置: 首頁>>代碼示例>>PHP>>正文


PHP _str_ireplace函數代碼示例

本文整理匯總了PHP中_str_ireplace函數的典型用法代碼示例。如果您正苦於以下問題:PHP _str_ireplace函數的具體用法?PHP _str_ireplace怎麽用?PHP _str_ireplace使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了_str_ireplace函數的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: str_ireplace

 /**
  * Returns a string or an array with all occurrences of search in subject (ignoring case).
  * replaced with the given replace value.
  * @see     http://php.net/str_ireplace
  *
  * @note    It's not fast and gets slower if $search and/or $replace are arrays.
  * @author  Harry Fuecks <hfuecks@gmail.com
  *
  * @param   string|array  text to replace
  * @param   string|array  replacement text
  * @param   string|array  subject text
  * @param   integer       number of matched and replaced needles will be returned via this parameter which is passed by reference
  * @return  string        if the input was a string
  * @return  array         if the input was an array
  */
 public static function str_ireplace($search, $replace, $str, &$count = NULL)
 {
     if (!isset(self::$called[__FUNCTION__])) {
         require SYSPATH . 'core/utf8/' . __FUNCTION__ . EXT;
         // Function has been called
         self::$called[__FUNCTION__] = TRUE;
     }
     return _str_ireplace($search, $replace, $str, $count);
 }
開發者ID:momoim,項目名稱:momo-api,代碼行數:24,代碼來源:utf8.php

示例2: str_ireplace

 public static function str_ireplace($search, $replace, $str, &$count = NULL)
 {
     if (!isset(UTF8::$called[__FUNCTION__])) {
         require JsonApiApplication::find_file("utf8", __FUNCTION__);
         // Function has been called
         UTF8::$called[__FUNCTION__] = TRUE;
     }
     return _str_ireplace($search, $replace, $str, $count);
 }
開發者ID:benshez,項目名稱:DreamWeddingCeremonies,代碼行數:9,代碼來源:UTF8.php

示例3: str_ireplace

 /**
  * Returns a string or an array with all occurrences of search in subject (ignoring case).
  * replaced with the given replace value.
  * @see     http://php.net/str_ireplace
  *
  * @note    It's not fast and gets slower if $search and/or $replace are arrays.
  * @author  Harry Fuecks <hfuecks@gmail.com
  *
  * @param   string|array  t'.php' to replace
  * @param   string|array  replacement t'.php'
  * @param   string|array  subject t'.php'
  * @param   integer       number of matched and replaced needles will be returned via this parameter which is passed by reference
  * @return  string        if the input was a string
  * @return  array         if the input was an array
  */
 public static function str_ireplace($search, $replace, $str, &$count = NULL)
 {
     require_once dirname(__FILE__) . '/' . __FUNCTION__ . '.php';
     return _str_ireplace($search, $replace, $str, $count);
 }
開發者ID:abhinay100,項目名稱:forma_app,代碼行數:20,代碼來源:lib.utf8.php

示例4: str_ireplace

 /**
  * Returns a string or an array with all occurrences of search in subject
  * (ignoring case) and replaced with the given replace value
  *
  * This is a UTF8-aware version of [str_ireplace](http://php.net/str_ireplace).
  *
  * [!!] Note: This function is very slow compared to the native version.
  *      Avoid using it when possible.
  *
  * @todo    PHP 5.5 issue
  *
  * @author  Harry Fuecks <hfuecks@gmail.com
  *
  * @param   mixed    $search   Text to replace
  * @param   mixed    $replace  Replacement text
  * @param   mixed    $str      Subject text
  * @param   integer  $count    Number of matched and replaced needles will be returned via this parameter which is passed by reference [Optional]
  *
  * @return  mixed
  *
  * @uses    Kohana::find_file
  */
 public static function str_ireplace($search, $replace, $str, &$count = NULL)
 {
     UTF8::_load(__FUNCTION__);
     return _str_ireplace($search, $replace, $str, $count);
 }
開發者ID:ultimateprogramer,項目名稱:cms,代碼行數:27,代碼來源:utf8.php

示例5: str_ireplace

 /**
  * Returns a string or an array with all occurrences of search in subject
  * (ignoring case) and replaced with the given replace value. This is a
  * UTF8-aware version of [str_ireplace](http://php.net/str_ireplace).
  *
  * [!!] This function is very slow compared to the native version. Avoid
  * using it when possible.
  *
  * @author  Harry Fuecks <hfuecks@gmail.com
  *
  * @param   string|array $search  text to replace
  * @param   string|array $replace replacement text
  * @param   string|array $str     subject text
  * @param   integer      $count   number of matched and replaced needles will be returned via this parameter which
  *                                is passed by reference
  *
  * @return  string  if the input was a string
  * @return  array   if the input was an array
  */
 public static function str_ireplace($search, $replace, $str, &$count = null)
 {
     if (!isset(UTF8::$called[__FUNCTION__])) {
         require Kohana::find_file('utf8', __FUNCTION__);
         // Function has been called
         UTF8::$called[__FUNCTION__] = true;
     }
     return _str_ireplace($search, $replace, $str, $count);
 }
開發者ID:s4urp8n,項目名稱:kohana-admin,代碼行數:28,代碼來源:UTF8.php

示例6: str_ireplace

 /**
  * Returns a string or an array with all occurrences of search in subject
  * (ignoring case) and replaced with the given replace value. This is a
  * UTF8-aware version of [str_ireplace](http://php.net/str_ireplace).
  *
  * [!!] This function is very slow compared to the native version. Avoid
  * using it when possible.
  *
  * @author  Harry Fuecks <hfuecks@gmail.com
  * @param   string|array    $search     text to replace
  * @param   string|array    $replace    replacement text
  * @param   string|array    $str        subject text
  * @param   integer         $count      number of matched and replaced needles will be returned via this parameter which is passed by reference
  * @return  string  if the input was a string
  * @return  array   if the input was an array
  */
 public static function str_ireplace($search, $replace, $str, &$count = NULL)
 {
     if (!isset(self::$called[__FUNCTION__])) {
         require Kohana::find_file('utf8', __FUNCTION__);
         // Function has been called
         self::$called[__FUNCTION__] = TRUE;
     }
     return _str_ireplace($search, $replace, $str, $count);
 }
開發者ID:BenjaminRomeo,項目名稱:KohanaTest,代碼行數:25,代碼來源:UTF8.php


注:本文中的_str_ireplace函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。