How can investors use the price-to-earnings ratio in stock analysis?

How does the price-to-earnings ratio assist in evaluating stock valuation?