note 89504 added to function.bccomp

From: Date: Wed, 11 Mar 2009 14:35:09 +0000
Subject: note 89504 added to function.bccomp
Groups: php.notes 
Request: Send a blank email to php-notes+get-151735@lists.php.net to get a copy of this message
Improvement of functions bcmax() and bcmin() originaly written by frank at booksku dot com <?php function bcmax() { $args = func_get_args(); if (count($args)==0) return false; $max = $args[0]; foreach($args as $value) { if (bccomp($value, $max)==1) { $max = $value; } } return $max; } function bcmin() { $args = func_get_args(); if (count($args)==0) return false; $min = $args[0]; foreach($args as $value) { if (bccomp($min, $value)==1) { $min = $value; } } return $min; } ?> ---- Server IP: 82.177.164.100 Probable Submitter: 85.222.24.234 ---- Manual Page -- http://www.php.net/manual/en/function.bccomp.php Edit -- https://master.php.net/note/edit/89504 Del: integrated -- https://master.php.net/note/delete/89504/integrated Del: useless -- https://master.php.net/note/delete/89504/useless Del: bad code -- https://master.php.net/note/delete/89504/bad+code Del: spam -- https://master.php.net/note/delete/89504/spam Del: non-english -- https://master.php.net/note/delete/89504/non-english Del: in docs -- https://master.php.net/note/delete/89504/in+docs Del: other reasons-- https://master.php.net/note/delete/89504 Reject -- https://master.php.net/note/reject/89504 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151735) next »