function convertleight($leight){ if($leight < 60){ $conv = '00:'.$leight; } if($leight < 600 XOR $leight > 59){ $conv = '0'.round($leight/60).':'.round($leight/10); } echo $conv; }