note 41979 deleted from ref.array by didou

From: Date: Wed, 28 Apr 2004 09:44:31 +0000
Subject: note 41979 deleted from ref.array by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-68936@lists.php.net to get a copy of this message
Note Submitter: Mo The Ho ---- //just a small piece of code to add int variables. //nice and usefull in those don't feel like coding mood. function totalArray($array) { $iCounter = 0; $total = 0; while ($iCounter < count($array)) { $total += $array[$iCounter]; $iCounter++; } return $total; }

« previous php.notes (#68936) next »