+

PHP Imagesy () function

Syntax:
int imagesy ($image)
Parameters:This function takes single parameters $image, which are required. This $image variable stores the image generated by the imagecreatetruecolor() function.Return Value:This function returns the height of the image or FALSE on errors. The programs below illustrate the imagesy() functionin PHP.Program 1:  
// save the image to a variable. $image = imagecreatefrompng ( " gfg.png " );  
// Display the image height. echo imagesy ( $image );  
?>
Output:
184
Program 2:  
// Create image or blank image size. $image = imagecreatetruecolor (500, 300);  
// Display the height of the image. echo imagesy ( $image );  
?>
Output:
300
Related Articles:
  • PHP | Imagedashedline() function
  • PHP | imagecolorat() function
  • PHP | Imagepolygon() function
Link: http://php.net/manual/en/function.imagesy.php
Get Solution for free from DataCamp guru