Jump to content

Seperating commas into an array?


jj20051

Recommended Posts

I was wondering how you would go about separating words with commas between them into an array. In this case I want users to be able to message multiple other users by entering their names in the following format: user1, user2, user3, user4 and then have php separate those into an array so I can then run them through a foreach(); so they can be sent to the correct users...

 

Any help or functions I should look into would be great... code not necessary, just point me in the right direction thanks!

Link to comment
https://forums.phpfreaks.com/topic/248370-seperating-commas-into-an-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.