How to split the array keyword value separated by commas in PHP?

mustafakalir

New Member
I have an array in $_POST:\[code\]Array ( [tags] => Javascript,PHP,Java,C++,Python) \[/code\]How can i convert this Array into Array like this:\[code\]Array ( [tag1] => Javascript [tag2] => PHP [tag3] => Java [tag4] => C++ [tag5] => Python)\[/code\]I guess i need to use regexp to remove the commas and do split in "foreach as".. But i'm so newbie in PHP... Please help me
 
Back
Top