Teddy D

Generation

translateTue, 31 Jan 2023

Pass the value in the array comma-separated in one line

function add(...$params) { return array_sum($params); }

Questions about programming?Chat with your personal AI assistant