reorder elements in a string
Posted: Wed Sep 27, 2006 1:29 pm
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?