Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 17th May 2021 23:05 Europe/London time based on the source file dated 13th May 2021 12:45 Europe/London time.