How to get Product ID by SKU in Magento?

This is Very Simple

$product_sku = ‘3495E’; // use your own sku number
$product_id = Mage::getModel(“catalog/product”)->getIdBySku( $product_sku );

echo $product_id;