i'm trying to generate a firewall template from a php config
i've got this array
$config=array('1024','3306','3804','127017');
and i would like this output
1024:3305
3307:3803
3805:127017
as you can see, the first and last value stay the same, the value in between are -1 / +1
i think i can do it but not in a clean way, i tried to manipulate the array but in a wrong way i guess because the code is too verbose
may you help ?
thanks