Search
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
    http://aq.gthex.co.uk:10000/webcontent/mylogin.php
    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?

    Comment on this Code Snippet?