note 105914 added to function.substr-count
| From: | Jim at terrys dot net | Date: | Sun, 25 Sep 2011 07:24:55 +0000 |
| Subject: | note 105914 added to function.substr-count | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183415@lists.php.net to get a copy of this message | ||
<?php
function substr_count_array( $haystack, $needle ) {
$count = 0;
foreach ($needle as $substring) {
$count += substr_count( $haystack, $substring);
}
return $count;
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 182.178.35.48
----
Manual Page -- http://www.php.net/manual/en/function.substr-count.php
Edit -- https://master.php.net/note/edit/105914
Del: integrated -- https://master.php.net/note/delete/105914/integrated
Del: useless -- https://master.php.net/note/delete/105914/useless
Del: bad code -- https://master.php.net/note/delete/105914/bad+code
Del: spam -- https://master.php.net/note/delete/105914/spam
Del: non-english -- https://master.php.net/note/delete/105914/non-english
Del: in docs -- https://master.php.net/note/delete/105914/in+docs
Del: other reasons-- https://master.php.net/note/delete/105914
Reject -- https://master.php.net/note/reject/105914
Search -- https://master.php.net/manage/user-notes.php