Teddy D

Generation

translateMon, 30 Jan 2023

call the function values $item

<?php $items = [1,2,3,4,5]; $sum = 0; foreach($items as $item) { $sum = add($sum, $item); } print($sum); ?>

Questions about programming?Chat with your personal AI assistant