Function __global->is_hex
Definitions
sources/webstandards.php
- Checks to see if a string holds a hexadecimal number.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $string | string | No | No | required parameter | N/A | N/A | The string to check |
Returns
- Whether the string holds a hexadecimal number
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Checks to see if a string holds a hexadecimal number.
*
* @param string $string The string to check
* @return boolean Whether the string holds a hexadecimal number
*/
function is_hex(string $string) : bool
* Checks to see if a string holds a hexadecimal number.
*
* @param string $string The string to check
* @return boolean Whether the string holds a hexadecimal number
*/
function is_hex(string $string) : bool

