Since I'm using a foreach loop, all the parameters are shown. I have several parameters which I want to include from my URL, but I want to remove the last parameter and it's value from automatically showing. The code is as follows:

```
 <?php   

$query  = explode('&', $_SERVER['QUERY_STRING']);
$params = array();

foreach( $query as $param )
{ 
  list($name, $value) = explode('=', $param, 2);
  echo $params[urldecode($name)][] = urldecode($value);
  echo "<br/>";
}

  echo "<br/> Total amount placed: ".$total = $_GET["total"];

?>

```

The URL is this one:

```
confirmation.php?betSlip=Juve&betSlip=Milan&total=0.43

```

As you can see the url consists of several items inside a betSlip parameter, and it consists the total of all items. I want to remove the total from displaying in the foreach loop and be able to display it only whenever I call it.

Thanks