Код: Выделить всё
for ($k = 0; $k < 20; $k++) {
$commC[$k] = number_format($commC[$k], 2, '.', '');
} //set up decimal places
for ($k = 0; $k < 20; $k++) {
$zelta[$k] = number_format($zelta[$k], 2, '.', '');
} //set up decimal places
< /code>
$commCКод: Выделить всё
Fatal error: Uncaught TypeError: number_format(): Argument #1 ($num)
must be of type float, array given in
C:\Inetpub\vhosts\incomeinsight.net\httpdocs\mars.php:439 Stack trace:
#0 C:\Inetpub\vhosts\incomeinsight.net\httpdocs\mars.php(439): number_format()
#1 {main} thrown in C:\Inetpub\vhosts\incomeinsight.net\httpdocs\mars.php on line 439
< /code>
Why does $commCПодробнее здесь: https://stackoverflow.com/questions/796 ... -for-array
Мобильная версия