How to specify where I want to split a string in an array?
Posted on 2011-04-26
Hi, in one of my functions I am pulling an int value from a database table and I am turning that int 'string' into an array:
$materials = str_split($materials);
so if I had 8970989, each number would become a variable.
but sometimes I don't just want single digits but double digits. So can I tell it to parse at a period? Like this:
so that it would return variables of whats in between the periods. Not sure that makes sense. . anyone got any suggestions?