Gen. partnerAlgotech

PHP funkce getimagesizefromstring()

|
11. září 2019

PHP > 5.4.0
Get the size of an image from a string.

Parametry

Parametr Datový typ Výchozí hodnota Poznámka
$imagedata string
$imageinfo array null

array

|bool Returns an array with 7 elements.
Index 0 and 1 contains respectively the width and the height of the image.
Index 2 is one of the IMAGETYPE_XXX constants indicating the type of the image.
Index 3 is a text string with the correct height="yyy" width="xxx" string
that can be used directly in an IMG tag.
On failure, FALSE is returned.

Další zdroje

Oficiální dokumentace funkce getimagesizefromstring

Načítání komentářů...

Zůstaňte v obraze

Přihlaste se k odběru našeho newsletteru a získejte nejnovější informace o kybernetické bezpečnosti přímo do vaší e-mailové schránky.

Vaše údaje jsou v bezpečí. Newsletter můžete kdykoliv odhlásit.