hitTesting Walls

Okay, I’m a noob and need help stopping my character from walking straight through walls.
Can anybody help me out.
Cheers…