get()
get(string $key, string $default = null) : string|null
Get value from $_GET & $_POST
Parameters
string |
$key |
The key of $_GET or $_POST |
string |
$default |
The default value if param doesn't exist in GET or POST data |
Returns
string|null
— Null if the param doesn't exist in both GET and POST data