Ordered string to array PHP
I have a problem with converting the string: $str = "1. List of word synonyms 2) Glass plastic products 3. Other product"; into an array list: Array([0] => List of word synonyms [1] => Glass plastic products [2] => Other product) I tried using preg_replace, but I can’t come up with a pattern that would… Read More Ordered string to array PHP