USB cable for PS3 controller?

I need a longer USB cable to connect my PS3 controller to the console for charging and playing. Will this do? I know the mini-end is the right kind, but I didn’t know whether there was a difference in the guts of these things.


i use this exact one since it’s longer than the puny one that the ps3 came with.

Thanks. For $2, I’ll grab more than one.