what is “this string”? the last 5 characters? substr(). The forth slash? strpos() with substr(). Two characters before and after the last slash? Same as before. Or explode().
Nope, because when my loop runs the string sometimes would look something like this “/save/manage/02” , so I need to cut the “/save/manage/” so that I can output 02
So the “/save/manage/” part of the string is consistent always?
That could be done with a simple str_replace() or substr() again, since the length (of the part to remove) is the same.