mb_substr_count

Function mb_substr_count

Count the number of substring occurrences

Package: Cake
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Located at Cake/bootstrap.php
mb_substr_count( string $haystack string $needle string $encoding null )

Parameters summary

string $haystack The string being checked.
string $needle The string being found.
string $encoding = null Character encoding name to use. If it is omitted, internal character encoding is used.

Returns

  • integer The number of times the $needle substring occurs in the $haystack string.

© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/2.9/function-mb_substr_count.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部