sum of the array elements in php
Return the sum of all the values in the array (5+15+25):
<?php
$a=array(5,15,25);
echo array_sum($a);
?>
sum of the array elements in php
Return the sum of all the values in the array (5+15+25):
<?php
$a=array(5,15,25);
echo array_sum($a);
?>
How to calculate the sum of values in a list PHP
$array = explode( ' ', $variable);
echo array_sum( $array);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us