php - How to create integer out of array? -
is possible convert array values 1 single integer. example, have array numbers
$array = array(7,4,7,2);
is possible integer value 7472 array?
simple use implode
as
$array = array(7,4,7,2); echo (int)implode("",$array);// 7472
Comments
Post a Comment