Skip to content
pontikis.net
  • Blog
  • WordPress
  • Labs
  • About
  • Toggle website search
Search this website
Menu Close

stripos

  1. Home>
  2. Blog>
  3. stripos>
Read more about the article Find all occurrences of a substring in a string with PHP
Credits

Find all occurrences of a substring in a string with PHP

  • Post author:Christos Pontikis
  • Post published:August 25, 2013
  • Post category:Web Development
  • Reading time:1 mins read

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 /** *…

Continue ReadingFind all occurrences of a substring in a string with PHP

Categories

Archives

NewsLetter

Click here to subscribe to our free email newsletter.
Unsubscribe anytime with a click.

LIKE OUR PAGE!


Say Hello to Gutenberg with my new Free WordPress Plugin Boilerplate for Developers!

Star it on Github!


  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Contact
  • Privacy
  • Terms
© Christos Pontikis 2013 - 2025
Close Menu