Page 1 of 1

reorder elements in a string

Posted: Wed Sep 27, 2006 1:29 pm
by pgolovko

Code: Select all

$my_string = "/main/category/sub/one_more_sub/";

// I need to reverse this string into:
$my_new_string = "/one_more_sub/sub/category/main/";

// whould it be possible? If so, then how?

Posted: Wed Sep 27, 2006 1:37 pm
by volka