Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

getvalescaped()

Description

Return a value from get/post/cookie, escaped and SQL-safe

It should not be relied upon for XSS. Sanitising output should be done when needed by developer

the function will return the default value

Parameters

ColumnTypeDefaultDescription
$val string
$default string|array The fallback value if not found
$force_numeric boolean false Set to TRUE if we want only numeric values. If returned value is not numeric

Return

string|array

This article was last updated 11th July 2020 02:35 Europe/London time based on the source file dated 9th July 2020 12:41 Europe/London time.