|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-09-25 10:33 UTC] pollita@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 20:00:01 2025 UTC |
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