Revision: 642
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 24, 2006 07:42 by nicolaspar
Initial Code
function mayorValor( $array ){ $a = array_unique( $array ); $s = 0; if( is_array( $a ) ) foreach( $a as $v ) $s = intval( $v ) > $s ? $v : $s; return $s; } $arr = array(9,3,5,6,7,8,99,9,7,8,9,4); echo mayorValor( $arr ) #out 99
Initial URL
Initial Description
Initial Title
Php extraer mayor valor de un array
Initial Tags
Initial Language
PHP