From 0833c63fa2ddba335000a45c203bbed6dd753b81 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Sun, 2 Jun 2002 04:36:16 +0000 Subject: [PATCH] Added some examples. Returns NULL on failure. Will fail if one variable is undefined. See also max(). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@84374 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/math/functions/min.xml | 37 +++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/reference/math/functions/min.xml b/reference/math/functions/min.xml index 9542798caf..cbac548e78 100644 --- a/reference/math/functions/min.xml +++ b/reference/math/functions/min.xml @@ -1,5 +1,5 @@ - + @@ -25,7 +25,8 @@ In the first variant, you need at least two parameters and min returns the lowest of these values. - You can compare an unlimited number of values. + You can compare an unlimited number of values. If one of the + variables is undefined, min will fail. In the second variant, min @@ -36,7 +37,37 @@ will be treated as floats, and a float is returned. If none of the values is a float, all of them will be treated as integers, - and an integer is returned. + and an integer is returned. Upon failure, min + returns NULL and an error of level E_WARNING + is generated. + + + + + +]]> + + + + + See also max.