What is the difference between using Excel functions and PHP functions for calculations in a web dashboard?

When creating a web dashboard, using Excel functions for calculations can be limiting as it requires users to have Excel installed on their devices. On the other hand, using PHP functions allows for calculations to be done server-side, making the dashboard more accessible and independent of specific software requirements.

<?php

// PHP code for calculating the sum of two numbers
$num1 = 10;
$num2 = 20;
$sum = $num1 + $num2;

echo "The sum of $num1 and $num2 is: $sum";

?>