Function __global->is_ascii_string
Definitions
sources/global3.php
- Find if we a string is ASCII, and hence we can use non-UTF-safe functions on it.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $x | string | No | No | required parameter | N/A | N/A | String to test |
Returns
- Whether it is ASCII
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find if we a string is ASCII, and hence we can use non-UTF-safe functions on it.
*
* @param string $x String to test
* @return boolean Whether it is ASCII
*/
function is_ascii_string(string $x) : bool
* Find if we a string is ASCII, and hence we can use non-UTF-safe functions on it.
*
* @param string $x String to test
* @return boolean Whether it is ASCII
*/
function is_ascii_string(string $x) : bool

