Annotation of embedaddon/php/ext/standard/tests/array/array_product_variation2.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test array_product() function : variation
3: --FILE--
4: <?php
5: /* Prototype : mixed array_product(array input)
6: * Description: Returns the product of the array entries
7: * Source code: ext/standard/array.c
8: * Alias to functions:
9: */
10:
11: echo "*** Testing array_product() : variations ***\n";
12:
13: echo "\n-- Testing array_product() function with a keyed array array --\n";
14: var_dump( array_product(array("bob" => 2, "janet" => 5)) );
15: ?>
16: ===DONE===
17: --EXPECTF--
18: *** Testing array_product() : variations ***
19:
20: -- Testing array_product() function with a keyed array array --
21: int(10)
22: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>