| Viewed 132 times

How I can Split String by Identical Characters in PHP?


I need a function that splits a string into an array of identical clusters. Examples splitGroups("5556667788") // ["555", "666", "77", "88"]

PHP