"; } // Call the function without passing parameters drink(); // Call the function with some parameter passing (ordering) drink('iced'); // Call the function with parameter passing (ordering) drink('cold', 'lemonade'); // Define a function that can accept multiple integer arguments and display thier total value function add(...$numbers) { $total = 0; foreach ($numbers as $num) { $total += $num; echo "
Total: $total"; } } // Call the function and pass three values add(1, 2, 3); ?>