KickRocksBish Posted November 7, 2010 Share Posted November 7, 2010 ok I need to know how to do this say I have variables.. like so $a[] = 12345; $a[] = 23456; $a[] = 35424; what do I have to do to get those variables to combine the value? and make that a variable? so it would be like $aCompiled = 12345,23456,35424, puts them in a string then I can use the variable later on in the script.. Link to comment https://forums.phpfreaks.com/topic/217993-make-all-ids-in-a-string-how/ Share on other sites More sharing options...
Vitamin Posted November 7, 2010 Share Posted November 7, 2010 $string = implode(',' , $a) Link to comment https://forums.phpfreaks.com/topic/217993-make-all-ids-in-a-string-how/#findComment-1131324 Share on other sites More sharing options...
KickRocksBish Posted November 7, 2010 Author Share Posted November 7, 2010 thanks Link to comment https://forums.phpfreaks.com/topic/217993-make-all-ids-in-a-string-how/#findComment-1131328 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.