Function __global->imagecreatefromstring

Definitions

sources_custom/phpstub.php

  • Create a new image from the image stream in the string.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$image string No No required parameter N/A N/A The image

Returns

  • The image handle (false: error)
  • Type: ~resource
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Create a new image from the image stream in the string.
 *
 * @param  string $image The image
 * @return ~resource The image handle (false: error)
 */

function imagecreatefromstring(string $image)