Jump to content

regex for commas


Ninjakreborn

Recommended Posts

you can use explode? which will split the keywords up into an array then you can validate each keyword one by one:
[code]$keywords = explode(',', $_POST['keywords'];

foreach($keywords as $k => $v)
{
    //validate each keyword, $v stores the keyword.
}[/code]
Link to comment
https://forums.phpfreaks.com/topic/12175-regex-for-commas/#findComment-46408
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.