While at the main menu, hold Left, Square, L1, and R1. It will say "Cheat Mode" on the bottom if you entered the code correctly. Then go to Options and you can select invincibility and stage levels.
When you complete a level and view the destruction bonus, move your character to the exit. You should hear a sound for confirmation, then some extra weapons will be added to your inventory.