codehaven - php snippets - coding help
Generic filters
Exact matches only
  • How to find the last folder in url

    14th December 2020

    Php - Miscellaneous

    php codehaven

    If this is my url I am running the script in
    and I want to find the part called webcontent
    use the script below to find this part.

    The result will be: webcontent

    Was this code snippet helpful?