2008-11-24 17:36:44 +00:00
|
|
|
--TEST--
|
2008-12-02 13:29:17 +00:00
|
|
|
Test array_product() function : variation
|
2008-11-24 17:36:44 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
/* Prototype : mixed array_product(array input)
|
|
|
|
* Description: Returns the product of the array entries
|
|
|
|
* Source code: ext/standard/array.c
|
|
|
|
* Alias to functions:
|
|
|
|
*/
|
|
|
|
|
|
|
|
echo "*** Testing array_product() : variations ***\n";
|
|
|
|
|
2008-12-02 13:29:17 +00:00
|
|
|
echo "\n-- Testing array_product() function with a keyed array array --\n";
|
2008-11-24 17:36:44 +00:00
|
|
|
var_dump( array_product(array("bob" => 2, "janet" => 5)) );
|
|
|
|
?>
|
|
|
|
===DONE===
|
|
|
|
--EXPECTF--
|
|
|
|
*** Testing array_product() : variations ***
|
|
|
|
|
2008-12-02 13:29:17 +00:00
|
|
|
-- Testing array_product() function with a keyed array array --
|
2008-11-24 17:36:44 +00:00
|
|
|
int(10)
|
|
|
|
===DONE===
|