NextIndexPrevious

Programs in PHP

7. Program to find the sum of elements in an array.
<?php

	$arr = array(10,20,30,'a');
	echo array_sum($arr);
	
?>
Output :

60

Father of PHP

Rasmus Lerdorf

Rasmus Lerdorf

Born: November 22, 1968, Greenland