Showing posts with label PHP array_product. Show all posts
Showing posts with label PHP array_product. Show all posts

Wednesday, 24 September 2014

array_product in PHP

array_product() function is used to calculate and return the product of an input array.

Syntax:

array_product(array)
array : Required. Specifies an array

Example:

<?php
$daysarr1 = array( 4,4 );
echo( array_product($daysarr1) );
?>

Output will be:


16