Magento 2 get customer details by id

Magento 2 get customer details by id

You can use  the below code for get the customer details:

<?php
$customerID = 1;
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$customerObj = $objectManager->create('Magento\Customer\Model\Customer')
->load($customerID);
$customerEmail = $customerObj->getEmail();