$weight_price = array(
100 => 2.20,
250 => 2.70,
500 => 3.85,
// etc
);
foreach( $weight_price as $wt => $pr ) {
if( $total_weight <= $wt ) {
$postage = $pr;
break;
}
}
That's how I would do it personally. Much easier then to just add more measurements as needed in the future as well (though I would store the values in a db table, instead of hard coded)