Simple breadcrumb function
When you only want to generate a simple breadcrumb, a large library is often overkill. Instead, a simple function like this is easy to use, runs very fast, and is only a few extra lines of code.
function breadcrumb($url = null, $title = null)
{
static $breadcrumb = array();
if($url && $title)
$breadcrumb[$url] = $title;
return $breadcrumb;
}
Written by Charlie Hadden
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#