Function __global->gettype
Definitions
sources_custom/phpstub.php
- Get the type of a variable.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $var | mixed | No | No | required parameter | N/A | N/A | The variable |
Returns
- The type
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the type of a variable.
*
* @param mixed $var The variable
* @return string The type
*/
function gettype($var) : string
* Get the type of a variable.
*
* @param mixed $var The variable
* @return string The type
*/
function gettype($var) : string

