Bitrix Site Manager

DeleteParam

string
DeleteParam(
 array remove_params
)

The function DeleteParam builds a parameter string from the $HTTP_GET_VARS array, deleting parameters with names specified in remove_params.

Parameters

ParameterDescription
remove_params Array of parameter names which are to be excluded from the result string.

Example



<?
// Make a link to a page
// with all current parameters GET, 
// replace (or add if absent) 
// parameters "page" and "order"
?>
<a href="page.php?page=1&order=asc&<?=DeleteParam(array("page","order"))?>">link</a>