Change a CSV string into a nice, readable string - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Change a CSV string into a nice, readable string (/showthread.php?tid=43747) |
Change a CSV string into a nice, readable string - El Forum - 07-21-2011 [eluser]SitesByJoe[/eluser] I just finished this function I needed to handle yanked csv values from database fields and thought I'd share with you. I've added this to my HTML_helper but you can put it anywhere you prefer. Code: function csv_to_nice_string($csv) Let me know if you see anything that could be improved. Hopefully it'll prove helpful to someone else. Change a CSV string into a nice, readable string - El Forum - 02-02-2012 [eluser]Unknown[/eluser] Hi, This is exactly what I need to list tags that are added by comma separation. I fairly new to Code Ignitor, could you possible show me how you could implement that in the controller and view files. Any feedback would be grateful. |