note 71187 added to function.array-product

From: Date: Wed, 15 Nov 2006 17:07:06 +0000
Subject: note 71187 added to function.array-product
Groups: php.notes 
Request: Send a blank email to php-notes+get-119753@lists.php.net to get a copy of this message
if you don't have PHP 5.xx . you can use this function. It does not make sure that the variables are numeric. function calculate_array_product($array="") { if(is_array($array)) { foreach($array as $key => $value) { $productkey = $productkey + $key; } return $productkey; } return NULL; } ---- Server IP: 216.194.113.175 Probable Submitter: 198.67.60.90 ---- Manual Page -- http://www.php.net/manual/en/function.array-product.php Edit -- https://master.php.net/note/edit/71187 Del: integrated -- https://master.php.net/note/delete/71187/integrated Del: useless -- https://master.php.net/note/delete/71187/useless Del: bad code -- https://master.php.net/note/delete/71187/bad+code Del: spam -- https://master.php.net/note/delete/71187/spam Del: non-english -- https://master.php.net/note/delete/71187/non-english Del: in docs -- https://master.php.net/note/delete/71187/in+docs Del: other reasons-- https://master.php.net/note/delete/71187 Reject -- https://master.php.net/note/reject/71187 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119753) next »