How can I use the concept of price-to-earnings ratio in stock analysis?

What is the best way to use the concept of price-to-earnings ratio in stock analysis?