php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25656 Not able to set the minimum value
Submitted: 2003-09-25 10:29 UTC Modified: 2003-09-25 10:33 UTC
From: vijay at mitoken dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.3 OS: windows 2000 Professional
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vijay at mitoken dot com
New email:
PHP Version: OS:

 

 [2003-09-25 10:29 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-25 10:33 UTC] pollita@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 06:01:28 2024 UTC