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" Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
BRADERY Posted February 5, 2011 Author Share Posted February 5, 2011 Example? anyone Quote Link to comment Share on other sites More sharing options...
jcbones Posted February 5, 2011 Share Posted February 5, 2011 echo implode(',',$id); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.