Magento 2 You can truncate the string using Magento best practice.
By default, You can truncate the string using substr() PHP method.
Magento gives Out of the box feature for a truncate string using Magento\Framework\Stdlib\StringUtils class.
Magento 2 You can truncate the string using Magento best practice.
By default, You can truncate the string using substr() PHP method.
Magento gives Out of the box feature for a truncate string using Magento\Framework\Stdlib\StringUtils class.