I'm using a breadcrumb script for it's obvious use, and I am trying to remove &anyqueryafterhere from the result. I'm using for each to go through the array to remove this, but it returns 'Array'. The code I have is
if(empty($breadcrumbs)===false){
foreach($breadcrumbs as &$r){
$r = explode("&", $r);
}
}
Currently, it, as mentioned before, just returns Array, so it shows as something like Array » Array. So first question, what's the cause of this, and second, how can I sort it? Thanks in advance.
$rby reference. In PHP, his line:$r = explode("&", $r)is the same as$breadcrumbs[$key] = explode("&", $r). He is modifying the source array because it is being passed by reference