min() function stops on arrays...
| From: | Lukasz Felsztukier | Date: | Mon, 29 May 2000 11:22:12 +0000 |
| Subject: | min() function stops on arrays... | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-15933@lists.php.net to get a copy of this message | ||
Hi there
In my script I gather some integers into a array called $patpos. Then I
search for the lowest integer in that array : $patpos = min($patpos);
And I'm supposed to have the lowest value in the $patpos (I know it's not an
array anymore) - but this does work only if there's one element in the
array. When I have two or more - the script stops without any notice - this
started after I upgraded to PHP 4.0.0
Please help or gimme an alternative - I have a search engine based on this
:-)
--
£ukasz Felsztukier
: : d i g i t a l O n e : : interactive media house
: : http://www.digitalone.pl
: : Al. Kosciuszki 1, 90-418 Lodz, Poland
: : tel./fax [+48 42] 632.89.74