PHP 中的影像高度函式 imagesy()


imagesy() 函式獲取影像高度。它返回影像的高度,或在出錯時返回 FALSE。

語法

imagesy(img)

引數

  • img:使用 imagecreatetruecolor() 建立的影像資源

返回值

imagesy() 函式返回影像的高度,或在出錯時返回 FALSE。

示例

以下是示例

 執行演示

<?php
   $img = imagecreatetruecolor(450, 250);
   echo imagesy($img);
?>

輸出

以下是輸出

250

更新於: 31-Dec-2019

83 瀏覽次數

開啟 職業生涯

透過完成課程獲得認證

開始學習
廣告
© . All rights reserved.