Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 277 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 277 Bytes

PHP Multi Explode

Tiny function to split a string by a array of the string for PHP.

The mexplode(), mexplodes() function breaks a string into an array.

Different ways

  • preg_split (one of the best way)
  • str_replace + explode
  • explode + implode