Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

way to convert an integer to an array of numbers

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

var_dump($array);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #integer #array #numbers
ADD COMMENT
Topic
Name
7+6 =