Function __global->looks_like_guid
Definitions
sources/global4.php
- Determine if a given string looks like it could be a GUID.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $potential | string | No | No | required parameter | N/A | N/A | The string to check |
Returns
- Whether it looks like a GUID
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Determine if a given string looks like it could be a GUID.
*
* @param string $potential The string to check
* @return boolean Whether it looks like a GUID
*/
function looks_like_guid(string $potential) : bool
* Determine if a given string looks like it could be a GUID.
*
* @param string $potential The string to check
* @return boolean Whether it looks like a GUID
*/
function looks_like_guid(string $potential) : bool

