I want to be able to break a part the output from $_SERVER['REQUEST_URI'] so that
http://domain.tld/database/category/food/index.php
will return
$top_level = database
$second_level = category
$third_level = food
any ideas?
Thanks.
you are here
Moderator: General Moderators
Re: you are here
Code: Select all
list(,,,$top_level, $second_level, $third_level) = explode('/', $_SERVER['REQUEST_URI']);