este es todo el codigo que tengo
Código HTML:
Ver original
<form action="nNumerosmayor.php" name="Nmayor" method="post"> <table width="60%" border="1"> <td colspan="3"><center>NOTAS
</center></td>
<?php
//$Area=implode(",",$_POST['valores']);
$array= $_REQUEST['valores'];
//foreach($array as $key => $value){
//$val = max(array($value));
//echo max(($array));
//echo "Numero ".max(array($value));
//echo max(array($Area));
//echo $Area;
//}
foreach($array as $d)
{
if(empty($nro))
{
$nro = $d;
$mayor = $nro;
}
else
{
if($d > $mayor)
{
$mayor = $d;
}
}
}
echo $mayor;
var_dump($array);
?>
<input type="submit" name="enviar" value="Enviar">