to post messages and comments.

← All posts tagged PHP

из #1625097

What would be the most simple way to convert an integer to an array of numbers?

"Выигравший" ответ:

<?php
$foo = 2468;
$array = str_split( (string) $foo );

var_dump( $array );