I have a variable like this
and I want get only /usr/local/software from the variable above.
Which is the fast way to get it (possibly without using explode_array) ?
it should work also in other situations for example
should return "/usr/local/software/my"
Any help please ?