Function __global->getimagesize

Definitions

sources_custom/phpstub.php

  • Get the size of an image.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$filename PATH No No required parameter N/A N/A Filename
$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.
 *
 * @param  PATH $filename Filename
 * @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 getimagesize(string $filename, ?array $image_info = null)