draxion Posted December 9, 2006 Posted December 9, 2006 Hey all, I'm just wondering if someone can tell me what exactly this line of code does. I'm trying to add custom tables to the manufacturers list but this line seems to truncate end of my tags. in /boxes/manufacturers.php $manufacturers_list = substr($manufacturers_list, 0, -4); Thanks! Shayne
Jack_mcs Posted December 9, 2006 Posted December 9, 2006 When the list is being built, a <br> is added to the end of each entry. That code removes the very last <br> so an extra space doesn't appear in the listing. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
draxion Posted December 9, 2006 Author Posted December 9, 2006 ah... thanks Jack. That explains why the last four letters of the tag I'm trying to add are removed! Thanks again! Shayne
Recommended Posts
Archived
This topic is now archived and is closed to further replies.