Even when I know how to do something, I look it up just in case. Sometimes there's a cleaner approach, or I learn that I don't fully understand the problem.
(this sort of discussion is what I'd love to see in a tech interview)