Yngvarr

Generation

generate functionWed, 25 Jan 2023

сумма от суммы в процентах

function percent_sum($sum, $percent) { $sum += $sum * $percent / 100; return $sum; } echo percent_sum(1000, 10); // 1100

Questions about programming?Chat with your personal AI assistant