Web | This Site

Learning PHP
Advanced PHP
PHP Function Reference
PHP Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM

| Home |  | References |  | Discussion Forums |  | About TP

# PHP Function array_product()

## Syntax

array_product ( $array );

## Definition and Usage

It returns the product of values in an array as an integer or float. That is it multiplies all the values and return final result.

## Paramters

Parameter | Description
--- | ---
array | Required. Specifies an array.

## Return Values

Product of values in an array.

## Example

Try out following example:

    <?php
    $array=array(5,6,3);

    print_r(array_product($array));
    ?>

This will produce following result:

    180

Advertisement

Online Image Processing

Indian Baby Names