PHP get the first 4 characters of a string By Heather Mello Apr 5, 2016 substr('abcdef', 0, 4); Share: Posted in Development ← PREVIOUS Temporarily and Programmatically Set Group Id in Session NEXT → How to get a magento item using sku, name, ID Related Posts Magento - How to add to the topMenu using xml 10 eCommerce Experts Give Their Secrets on How They Optimized Their Business in [2016] How to Create and Use Your Own Custom Font Icons for Web