LOS ANGELES -- John Stamos was sentenced to three years of probation Tuesday after he pleaded no contest to driving under the influence of a drug earlier this year.

Superior Court Commissioner Jane Godfrey also ordered Stamos to attend 52 Alcoholics Anonymous meetings and a counselling session as part of his sentence in the misdemeanour case.

Blair Berk, an attorney for the "Full House" star, entered the plea Tuesday on Stamos' behalf. Berk and Stamos' publicist Matt Polk declined comment after the hearing.

The 52-year-old actor was briefly hospitalized in June after Beverly Hills, California, police arrested him on suspicion of driving under the influence. Police have not identified the substance they suspect Stamos had taken, and it was not addressed in court.

The actor currently appears on the Fox sitcom "Grandfathered," and he is working on a reboot of "Full House" for Netflix.

If Stamos successfully completes the sentence, the case can be dismissed and expunged, Berk said.