A former PE teacher in Raleigh was sentenced to 11 to 17 years in prison Thursday after pleading guilty to nine counts of indecent liberties and sexual exploitation charges.