PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a breadcrumbs bar and I want to dynamically add the items to it.
I was wondering how to assign the current page <title> tag into the breadcrumb.
I can easily add the link to the current page using $_SERVER[PHP_SELF];
PHP_SELF is a server variable that is returned to PHP by the web server. So unfortunately, you won't be able to retrieve the title tags without them being assigned by a variable of a sort. Set your title to a variable and call the variable in your breadcrumbs bar. There are other ways but I'd need to know more information about how your website displays pages and what-not.