How to get customer First Name, Last Name , Email Address or Details in magento

$customer = Mage::getSingleton(‘customer/session’)->getCustomer();

$email = $customer->getEmail(); // To get Email Id of a customer

$firstname = $customer->getFirstname(); // To get Firstname of a customer

$lastnam e= $customer->getLastname(); // To get Last name of a customer