programming-examples/php/Basics/Program to find the sum of elements in an array..php

6 lines
68 B
PHP
Raw Permalink Normal View History

2019-11-18 14:44:36 +01:00
<?php
$arr = array(10,20,30,'a');
echo array_sum($arr);
?>