imagesx

(PHP 4, PHP 5, PHP 7)

imagesxȡ��ͼ����

˵��

imagesx ( resource $image ) : int

imagesx() ���� image �������ͼ��Ŀ�ȡ�

Example #1 ʹ�� imagesx()

<?php

// create a 300*200 image
$img imagecreatetruecolor(300200);

echo 
imagesx($img); // 300

?>

�μ� imagecreatetruecolor()��getimagesize() �� imagesy()��