PHILADELPHIA (AP) -- Philadelphia 76ers guard John Salmons agreed to terms of a sign-and-trade deal with the Toronto Raptors on Thursday.

The 26-year-old Salmons, a four-year veteran, had his best season as a pro last year but struggled at times to fit into an offense dominated by Allen Iverson and Chris Webber.

"I am happy for Johnny," Sixers president Billy King said Thursday night. "This is a good decision for Johnny and us."

The Sixers received a 2007 second-round draft choice and a $2 million trade exception in the deal. Terms of the deal were not immediately available, but the Philadelphia Daily News reported on its Web site that Salmons agreed to terms of a five-year deal worth $23 million.

Salmons chose an offer from the Raptors over one from Phoenix, Suns coach and general manager Mike D'Antoni said.

"I felt this was his best choice," King said.

D'Antoni said Phoenix had worked out a sign-and-trade deal with Philadelphia to acquire the athletic small forward. Instead, Salmons decided to accept an offer from the Raptors, whose general manager is Bryan Colangelo, former Suns president and an architect of Phoenix's squad.

Salmons' agent, Joel Bell, did not immediately return phone messages.

Last year with the Sixers, Salmons averaged a career-best 7.5 points and added 2.1 rebounds. He appeared in all 82 games but was the team's fifth-leading scorer behind Iverson, Webber, Andre Iguodala and Kyle Korver.

"Sometimes things don't work out as consistent as you may want for a guy, but I think we may be looking back, and people will be writing, 'Geez, they had that guy,"' King said this week during a Sixers rookie camp. "But I think for Johnny, a change of scenery would be best for him."

The Sixers also added athletic swingman Rodney Carney in the draft, leaving little room for Salmons, who had been a restricted free agent.

Salmons grew up in Philadelphia and attended Plymouth-Whitemarsh High School just outside the city.