#25656 [Opn->Bgs]: Not able to set the minimum value

From: Date: Thu, 25 Sep 2003 14:33:40 +0000
Subject: #25656 [Opn->Bgs]: Not able to set the minimum value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-48093@lists.php.net to get a copy of this message
ID: 25656 Updated by: pollita@php.net Reported By: vijay at mitoken dot com -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: windows 2000 Professional PHP Version: 4.3.3 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. This is not a scripting support forum. Previous Comments: ------------------------------------------------------------------------ [2003-09-25 10:29:04] vijay at mitoken dot com Description: ------------ i am using jpgraphs to generate reports, and i use php to set the values. i have some problems in setting minimum value. can anybody help me. following is my code. Reproduce code: --------------- function getsumofmindata($datay) { for($i=0; $i<count($datay);$i++) { if($datay[$i] < $datay[$i+1] ) $datay[$i+1] = $datay[$i]; } return $datay[count($datay)-1]; } Expected result: ---------------- return value should get minimum value Actual result: -------------- giving some junk value ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25656&edit=1

« previous php.bugs (#48093) next »