$link = t3lib_div::linkThisScript(); echo $link;
$params = array('foo' => 'bar', 'baz' => 'qux'); $link = t3lib_div::linkThisScript($params); echo $link;This code will add the query parameters `foo=bar` and `baz=qux` to the URL of the current script. Package Library: t3lib_div is part of the TYPO3 CMS system and is not a standalone library.