pankaj.ghadge Posted August 23, 2008 Share Posted August 23, 2008 Suppose a string contains values separated by comma and spaces.e.g; c,c++,java,php unix linux mba I want to split this string by comma and space But by using split function we can separate it by comma or by space . I want want separation by both. I am doing a search module and user may pass the value separated by comma and by space.That's why i required it .please help me. Link to comment Share on other sites More sharing options...
jeffman Posted August 23, 2008 Share Posted August 23, 2008 Have you looked at preg_split() ? Link to comment Share on other sites More sharing options...
pankaj.ghadge Posted August 23, 2008 Author Share Posted August 23, 2008 Thanks Buddy ............. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.