画像の幅を取得する
$image
指定した画像オブジェクト image の幅を返します。
image
imagecreatetruecolorのような画像作成関数が返す GdImage オブジェクト。
image の幅を返します。
gd
例1 imagesx の使用法
<?php// 300*200 の画像を作成します$img = imagecreatetruecolor(300, 200);echo imagesx($img); // 300?>