Function __global->getimagesizefromstring
Definitions
sources_custom/phpstub.php
- Get the size of an image from a string.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $imagedata | string | No | No | required parameter | N/A | N/A | The image data |
| $image_info | ?array | No | No | Null | N/A | N/A | Extra details will be put here (null: return-only). Note that this is actually passed by reference, but is also optional. |
Returns
- List of details: $width, $height, $type, $attr (false: error)
- Type: ~array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the size of an image from a string.
*
* @param string $imagedata The image data
* @param ?array $image_info Extra details will be put here (null: return-only). Note that this is actually passed by reference, but is also optional.
* @return ~array List of details: $width, $height, $type, $attr (false: error)
*/
function getimagesizefromstring(string $imagedata, ?array $image_info = null)
* Get the size of an image from a string.
*
* @param string $imagedata The image data
* @param ?array $image_info Extra details will be put here (null: return-only). Note that this is actually passed by reference, but is also optional.
* @return ~array List of details: $width, $height, $type, $attr (false: error)
*/
function getimagesizefromstring(string $imagedata, ?array $image_info = null)

