note 41979 added to ref.array

From: Date: Wed, 28 Apr 2004 09:19:08 +0000
Subject: note 41979 added to ref.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-68932@lists.php.net to get a copy of this message
//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; } ---- Manual Page -- http://www.php.net/manual/en/ref.array.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41979 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41979&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41979&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#68932) next »