What would be the most simple way to convert an integer to an array of numbers?
Example:
2468 should result in array(2,4,6,8).
2468
array(2,4,6,8)
use str_split() function
$array = str_split($str);
http://php.net/manual/en/function.str-split.php