Skip to main content

$_objectManager = \Magento\Framework\App\ObjectManager:To get the symbol:getInstance(); $_Symbol = $_objectManager->create('Magento\Directory\Model\CurrencyFactory')->create()->load($_code); echo $_Symbol->getCurrencySymbol();

$_objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$_Symbol = $_objectManager->create('Magento\Directory\Model\CurrencyFactory')->create()->load($_code);
echo $_Symbol->getCurrencySymbol();

$_objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $_Symbol = $_objectManager->create('Magento\Directory\Model\CurrencyFactory')->create()->load($_code); echo $_Symbol->getCurrencySymbol();

To get the symbol:

$_objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$_Symbol = $_objectManager->create('Magento\Directory\Model\CurrencyFactory')->create()->load($_code);
echo $_Symbol->getCurrencySymbol();
Source Link

$_objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $_Symbol = $_objectManager->create('Magento\Directory\Model\CurrencyFactory')->create()->load($_code); echo $_Symbol->getCurrencySymbol();