PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<imagestringupimagesy>
Last updated: Mon, 16 Jul 2012

imagesx

(PHP 3, PHP 4, PHP 5)

imagesx -- 取得图像宽度

说明

int imagesx ( resource image )

imagesx() 返回 image 所代表的图像的宽度。

例子 1. 使用 imagesx()

<?php

// create a 300*200 image
$img = imagecreate(300, 200);

echo
imagesx($img); // 300

?>

参见 imagecreate()getimagesize()imagesy()




<imagestringupimagesy>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST