php - Subst a string reverse to the last slash -
Hello, I have a string with the path. I do not need the whole path to what Thank you for any indication you can give. Try to blast the array by using slash as a delimiter? This should give you the entire folder tree as the array. For more information see: substr Is possible in the last slash? Based on the code below, I do not need the
model name .
$ path = userdir / modeldir / model name
$ pathArray = explosion ('/', $ path);
Comments
Post a Comment