2015-08-11, 06:33 PM
(This post was last modified: 2015-08-11, 06:34 PM by Destroy666.)
Well, I thought the folder names were unique. You need a slightly more advanced solution for this then. Instead of strrpos() you can use strpos() with the $offset parameter: http://php.net/manual/en/function.strpos.php and increase the offset by the directory name strlen() after each breadcrumb. Starting with 0 ofc.