Find all occurrences of a substring in a string with PHP
PHP stripos (or mb-stripos) finds the position of the first occurrence of a (case-insensitive) substring in a string. How to find all occurrences? Here is a solution: <?php /** *…
PHP stripos (or mb-stripos) finds the position of the first occurrence of a (case-insensitive) substring in a string. How to find all occurrences? Here is a solution: <?php /** *…