--TEST-- Test array_product() function : variation --FILE-- true, "boolean (false)" => false, "string" => "hello", "numeric string" => "12", "resource" => $fp, "object" => new A(), "null" => null, "array" => array(3,2)); foreach ($types as $desc => $type) { echo $desc . "\n"; var_dump(array_product(array($type))); echo "\n"; } fclose($fp); ?> ===DONE=== --EXPECTF-- *** Testing array_product() : variation - using non numeric values *** boolean (true) int(1) boolean (false) int(0) string int(0) numeric string int(12) resource int(%d) object int(1) null int(0) array int(1) ===DONE===