How to find the smallest number in an array ?
#7

I know you fixed it already, but I would like to share this for anyone who's looking for a function like this (not expecting anything)

PHP код:
returnLowestValuearr[ ], len ) {
    new 
val 0x7FFFFFFF;
    for( new 
ilen++ ) if( arr] < val val arr];
    return 
val;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)