way to convert an integer to an array of numbers

118

$number = 2468;
$array  = array_map('intval', str_split($number));

var_dump($array);

Comments

Submit
0 Comments