getval()

Description

Retrieve a user-submitted parameter from the browser via post/get/cookies, in that order.

Parameters

ColumnTypeDefaultDescription
$param string The parameter name
$default string A default value to return if no matching parameter was found
$force_numeric boolean false Ensure a number is returned. (DEPRECATED)
$type_check callable null Validate param type. Default is to check param values are strings.

This article was last updated 14th June 2025 14:05 Europe/London time based on the source file dated 9th June 2025 16:55 Europe/London time.