it was a matter of time, thats why i want help for this script, in case someone could solve it faster than me, cause im in rush
ok this is what i created and it applys to any number idependent of how many digits it has.
$mynum=5085
$length=strlen($mynum);
for ($i=0;$i<$length;$i++) {
$f=substr($mynum,$i,$length-($length-1));
$gram.="dtmf-".$f." ";
}
$gramlength=strlen($gram);
$mygram=substr($gram,0,$gramlength-1);
$mygramall="(".$mygram.")";
print ($mygramall);