且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我如何乘在容易与PHP数组中的每个项目?

更新时间:2023-11-28 15:40:52

只是迭代通过使用的foreach 语句和乘法的数组:

Just iterate over the array with the foreach statement and multiply:

foreach ($times as $value) {

  $new_times[] = $value * 60;

}