BRADERY Posted February 5, 2011 Share Posted February 5, 2011 $id[] = 12345; $id[] = 12345; $id[] = 12345; $id[] = 12345; $id[] = 12345; how would I combine these into a string "12345,12345,12345,12345,12345" Link to comment https://forums.phpfreaks.com/topic/226771-combine-these-variables-into-a-string/ Share on other sites More sharing options...
sottwell Posted February 5, 2011 Share Posted February 5, 2011 http://php.net/manual/en/function.implode.php Link to comment https://forums.phpfreaks.com/topic/226771-combine-these-variables-into-a-string/#findComment-1170193 Share on other sites More sharing options...
BRADERY Posted February 5, 2011 Author Share Posted February 5, 2011 Example? anyone Link to comment https://forums.phpfreaks.com/topic/226771-combine-these-variables-into-a-string/#findComment-1170452 Share on other sites More sharing options...
jcbones Posted February 5, 2011 Share Posted February 5, 2011 echo implode(',',$id); Link to comment https://forums.phpfreaks.com/topic/226771-combine-these-variables-into-a-string/#findComment-1170461 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.