FORT LAUDERDALE, Fla. -- A contrite Chad Johnson apologized Monday for disrespecting a judge when the former NFL star slapped his attorney on the backside in court last week and was released from jail after only a week instead of 30 days.

Broward County Circuit Judge Kathleen McHugh accepted Johnson's apology and cut his 30-day jail term for a probation violation to the seven days he has already served since the rear-swatting incident. Johnson, a flamboyant wide receiver formerly known as Chad Ochocinco, said in court that he'd had time to think about why his flippant attitude was wrong -- especially in a domestic violence case.

"I just wanted to apologize for disrespecting the court last time," said Johnson, wearing a tan jail jumpsuit with his hands shackled at the waist. "I apologize. I did have time to reflect on the mistakes I made in this courtroom."

Johnson walked out of jail shortly after 4 p.m. and was met by his attorney, Adam Swickle, and sports agent Drew Rosenhaus. Johnson told reporters he was thankful to McHugh because she was the first person to get him to slow down and think about the path his life was taking.

"No one has been able to do it, not even my parents," he said. "I thank her. Everything she did was justified."

Asked if he hoped to latch on with an NFL team, Johnson said, "I just have to say my next move, my best move."

McHugh noted that in a previous hearing Johnson had put his arm around a female prosecutor's shoulders, prompting the prosecutor to tell him twice not to touch her. The judge also pointed out that when Johnson head-butted his then-wife, Evelyn Lozada of the reality TV show "Basketball Wives," she suffered a 3-inch gash on her head that required eight stitches. The judge called those injuries horrific.

McHugh also said Johnson failed to appreciate "the gift of probation" after pleading no contest to battery in the altercation last August with Lozada, which prompted her to quickly file for divorce. Johnson, 35, was in court because he had failed to meet with his probation officer for three straight months.

Chad Johnson's 30-day jail term was cut to the seven days he already served. He also was ordered to perform 25 hours of community service and attend domestic violence counseling twice a week during probation, which was extended three months. AP Photo/Cristobal Herrera

"I find that's an arrogant disregard for a court order," the judge said.

McHugh ordered Johnson to perform 25 hours of community service and attend domestic violence counseling sessions twice a week during probation, and she extended his probation an extra three months through mid-October.

Swickle, the attorney who had his backside slapped, said Johnson will fully comply with all probation conditions and hopes to resurrect his NFL career. The six-time Pro Bowler was cut by the Miami Dolphins after his arrest for battery; he played most of his 11 seasons with the Cincinnati Bengals followed by one year with the New England Patriots.

"He understands that this is the kind of situation that can derail a person's career," Swickle said. "We're very confident he will do what he should do."

Terrell Owens visited Johnson in jail on Saturday and tweeted that his former teammate was in "good spirits."

"I really didn't know what to expect but to see the homie locked up is a very humbling experience, to talk to him via vid conference let me know that's not where anyone wants to be," Owens wrote. "I know he's only in the county jail but to someone that has never been locked up...Jail is Jail!"

Information from The Associated Press was used in this report.