View Single Post
Old 11-22-2008, 03:59 PM  
Naughty
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,484
THIS does exactly what i want:
Code:
$a = array(100,100,100);
//$a = array(200,100,100);
if (in_array(100,$a)){
$tTnt_cnt = array_sum($a);
$tItems_cnt = count($a);

print (($tTnt_cnt/$tItems_cnt) > 100)?"parcel":"envelope";

}
__________________
seks.ai for sale - ping me
Naughty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote