PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
ol4pr0
Forum Regular
Posts: 926 Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador
Post
by ol4pr0 » Wed Dec 15, 2004 2:59 pm
I have been messing around to see how to get the largest value of an array. untill now i have not come with a solution.
rehfeld
Forum Regular
Posts: 741 Joined: Mon Oct 18, 2004 8:14 pm
Post
by rehfeld » Wed Dec 15, 2004 3:35 pm
sort()
ol4pr0
Forum Regular
Posts: 926 Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador
Post
by ol4pr0 » Wed Dec 15, 2004 3:46 pm
Found it ..
, altho i am up for better solutions
Code: Select all
$x = 6;
$y = max("5","6","7");
if ($y < $x) {
echo $x." is bigger";
}
else
{
echo $y ." is bigger";
}