imagesx
imagesx
Get image width
int **imagesx** GdImage $image
Returns the width of the given object.
image
Return the width of the .
image
**Voorbeeld: Using **
<?php
// create a 300*200 image
$img = imagecreatetruecolor(300, 200);
echo imagesx($img); // 300
?>
imagecreatetruecolor``getimagesize``imagesy