Hellooww...
maybe a question that is a little bit easyer to answer:
I want to remove a known part of a string.
I have a string (SCRIPT_FILENAME) and I would like to remove what comes behind the last "/"
I could do this, by exploding on /
retrieve all the values except the last one
implode with /
but that's too long for me, what I would need would be a substr() with a negative end!
any ideas?
anything more than 2 lines is not welcome π