Function __global->filter_naughty_harsh
Definitions
sources/global.php
- This function is similar to filter_naughty, except it requires the parameter to be strictly alphanumeric. It is intended for use on text that will be put into an eval.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $in | string | No | No | required parameter | N/A | N/A | String to test |
| $preg | boolean | No | No | False | N/A | N/A | Whether to just filter out the naughtiness |
Returns
- Same as input string
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* This function is similar to filter_naughty, except it requires the parameter to be strictly alphanumeric. It is intended for use on text that will be put into an eval.
*
* @param string $in String to test
* @param boolean $preg Whether to just filter out the naughtiness
* @return string Same as input string
*/
function filter_naughty_harsh(string $in, bool $preg = false) : string
* This function is similar to filter_naughty, except it requires the parameter to be strictly alphanumeric. It is intended for use on text that will be put into an eval.
*
* @param string $in String to test
* @param boolean $preg Whether to just filter out the naughtiness
* @return string Same as input string
*/
function filter_naughty_harsh(string $in, bool $preg = false) : string
sources/minikernel.php
- This function is similar to filter_naughty, except it requires the parameter to be strictly alphanumeric. It is intended for use on text that will be put into an eval.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $in | string | No | No | required parameter | N/A | N/A | String to test |
Returns
- Same as input string
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* This function is similar to filter_naughty, except it requires the parameter to be strictly alphanumeric. It is intended for use on text that will be put into an eval.
*
* @param string $in String to test
* @return string Same as input string
*/
function filter_naughty_harsh(string $in) : string
* This function is similar to filter_naughty, except it requires the parameter to be strictly alphanumeric. It is intended for use on text that will be put into an eval.
*
* @param string $in String to test
* @return string Same as input string
*/
function filter_naughty_harsh(string $in) : string

