jeeva Posted April 30, 2008 Share Posted April 30, 2008 Dear Friends i need to swap the given string For example $str=A,B,C; Output should be like Array(0=>"A,B,C", 1=>"C,B,A", 2=>"B,A,C", 3=>"A,C,B", 4=>"B,C,A",...etc) can i get like this? Could you please help me out? Thanks Jeeva Quote Link to comment Share on other sites More sharing options...
trq Posted April 30, 2008 Share Posted April 30, 2008 Firstly, is this comma delimited string always comma delimeted and always 3 chars long? If not, explain. Quote Link to comment Share on other sites More sharing options...
jeeva Posted April 30, 2008 Author Share Posted April 30, 2008 No, it can be 4 or whatever..... and its comma delimited . 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.