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 Link to comment https://forums.phpfreaks.com/topic/103522-string-swap/ 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. Link to comment https://forums.phpfreaks.com/topic/103522-string-swap/#findComment-530091 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 . Link to comment https://forums.phpfreaks.com/topic/103522-string-swap/#findComment-530126 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.