Actor Frankie Muniz tweeted Tuesday that he suffered a “mini-stroke” last week and was taken to the hospital.

“I was in the hospital last Friday. I suffered a ‘Mini Stroke,’ which was not fun at all. Have to start taking care of my body! Getting old!,” the “Malcolm in the Middle” star tweeted Tuesday morning.

Doctors are unsure what caused Muniz, who is only 26, to have the stroke, TMZ reported.

The gossip website reported Muniz was taken to an Arizona emergency room by friends when the actor had trouble speaking, understanding words and was “acting really weird.”

The “Agent Cody Banks” star is also the drummer for the band Kingsfoil.

TMZ reported that the band is set to go on tour, but that Muniz is being told by doctors to take it easy.

Muniz turns 27 tomorrow.

Gossip blogger Perez Hilton sent well wishes to Muniz through his Twitter account.

“Sending you good vibez!” Hilton wrote.

“Thanks Perez! Trying to learn how to relax! I never like to stop moving or working!” Muniz responded.

A mini-stroke is the colloquial term for a transient ischemic attack, which occurs when blood flow to a part of the brain briefly stops, according to the National Institute of Health. Stroke-like symptoms may be present for up to a day, but most symptoms last no longer than two hours.

A transient ischemic attack may be a sign that a stroke is about to happen, but it appears that wasn’t the case with Muniz’s mini-stroke.

While TMZ reported that the cause of the actor’s mini-stroke is still unknown, possible causes include a blood clot in an artery of the brain, a blood clot that travels to the brain from another part of the body, a blood vessel injury or the narrowing of a blood vessel in the brain or leading to the brain.

The No. 1 risk factor for mini-strokes is high blood pressure, but other risk factors include diabetes, high cholesterol and a family history of stroke, according to the NIH.

Increasing age is another risk factor, with the risk of having a mini-stroke rising after age 55.

The symptoms of a stroke and a mini-stroke are the same, including numbness or tingling on one side of the body, confusion and trouble saying or misunderstanding words, among other symptoms.