YouTip LogoYouTip

Php Getimagesizefromstring

# PHP getimagesizefromstring - Get Image Information Function [![Image 3: PHP Image Processing](#)PHP Image Processing](#) getimagesizefromstring β€” Get image size information from a string. ### Syntax array getimagesizefromstring ( string $imagedata [, array &$imageinfo ] ) Same as the [getimagesize()](#) function. The difference is that the first parameter of getimagesizefromstring() is the string representation of the image data, not the filename. **Parameters** * **imagedata:** String representation of the image data. * **imageinfo:** See the [getimagesize()](#) function. ### Example The output of the above example is: Array( => 290 => 69 => 3 => width="290" height="69" => 8 => image/png ) [![Image 4: PHP Image Processing](#)PHP Image Processing](#)
← Php Image Type To Mime TypePhp Image Type To Extension β†’