TeachMeBasics
PHP program to find large number in array
PROGRAM
<?php
$my_array=array('564','54','687894756','7987654','242343242354','789798');
sort($my_array);
$a=count($my_array)-1;
echo "the largerst in the array"."<br/>";
echo $my_array[$a];
//echo $a;
?>
OUTPUT
No comments:
Post a Comment
Home
Subscribe to:
Posts (Atom)
No comments:
Post a Comment