Lee-Bartlett Posted November 3, 2008 Share Posted November 3, 2008 Can anyone point me to a good tut which explains this, all i found on google is just code snippets but none explains it. Link to comment https://forums.phpfreaks.com/topic/131188-php-implode/ Share on other sites More sharing options...
pbsonawane Posted November 3, 2008 Share Posted November 3, 2008 Check this http://in.php.net/manual/en/function.implode.php Link to comment https://forums.phpfreaks.com/topic/131188-php-implode/#findComment-681123 Share on other sites More sharing options...
Andy-H Posted November 3, 2008 Share Posted November 3, 2008 It is quite a simple function TBH. http://php.net/implode basically it takes two arguements, an array and a dilemiter, it then implodes the array into a string with each value seperated by the dilemiter. ie. $array = array("www", "google", "com"); $string = implode('.', $array); echo $string; /* output www.google.com */ Link to comment https://forums.phpfreaks.com/topic/131188-php-implode/#findComment-681124 Share on other sites More sharing options...
Lee-Bartlett Posted November 3, 2008 Author Share Posted November 3, 2008 How would use somthing like this to break up a page template? I've been asked to use implode to add a header and footer file to a document. I originally just wanted to do a include file but apperntly this is better to use. Link to comment https://forums.phpfreaks.com/topic/131188-php-implode/#findComment-681139 Share on other sites More sharing options...
Andy-H Posted November 3, 2008 Share Posted November 3, 2008 Never heard that one before, I'd just include the files... Link to comment https://forums.phpfreaks.com/topic/131188-php-implode/#findComment-681141 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.