A school system has 30 schools. The lowest school code is 298 and the highest is 516. For every school, the same processes will be called. The approach I've taken so far can be seen below. How can I shorten this code? Thank you.
for ( $i = 298; $i <= 516; $i++ )
{
switch ( $i )
{
case 298:
$c_sch = strval ( $i ) ;
// call a function
uf_mem_requester ( $c_sch, $t_mem1, $t_mem2, $t_mem3,
$d_year, $d_datadate ) ;
case 303:
// etc....etc.....
case 309:
// etc....etc.....
default:
}
}