Isolating part of url with php
I would like to highlight a specific part of the url if the structure remains the same:
ex. URL - http://www.URL.co.uk/87/318/carrot_cake/
this is 318 part of the above example, however the number can range from 1 to 999999 but will always stay between 2 x '/' and to the left of the name (carrot_cake in the example), this is where I'm strugling.
Thank you in
+2
Bift
source
to share
2 answers