i need the functionality of php explode(), but without the separators.
for example, turning the variable “12345” into an array, holding each number seperately.
is this possible? i’ve already googled but only found explode(), which doesn’t seem to work.
thanks!
with any string in php:
or (from the preg_split()) page in the manual
EVEN BETTER:
benchmark of preg_split() vs str_split()
results: