Documentation

DeleteParam

string
DeleteParam(
 array remove_params
);

This function generates a string of parameters based on the standard $HTTP_GET_VARS array, deleting from it all the parameters, which names are specified in the remove_params.

Function parameters

ParameterDescription
remove_params Array of parameter names which must be deleted from the resulting string.

Examples of use

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


© «Bitrix24», 2001-2024
Up