GeneralUtility is a PHP class in TYPO3 CMS that provides general utility methods. One of the methods is _GETset(), which is used to modify or add a new value to the $_GET array in PHP. This method takes two parameters, the first one is the key or name of the parameter, while the second parameter is the value to be assigned to that key.
Example 1 - Adding a parameter to $_GET array: To add a new parameter named "page" with the value "2" in the $_GET array, we can use the following code:
This will add the parameter "?page=2" to the current URL.
Example 2 - Modifying a parameter in $_GET array: To modify an existing parameter named "id" with the value "5" in the $_GET array, we can use the following code:
This will update the parameter "?id=5" in the current URL.
Package library: TYPO3\CMS\Core\Utility\GeneralUtility
PHP TYPO3\CMS\Core\Utility GeneralUtility::_GETset - 23 examples found. These are the top rated real world PHP examples of TYPO3\CMS\Core\Utility\GeneralUtility::_GETset extracted from open source projects. You can rate examples to help us improve the quality of examples.