A man who escaped from the Berkeley County jail last year and hid in a Myrtle Beach hospital will have to serve three-and-a-half years in prison.