031-PHP acquires image information

? < PHP
     List ( $ width , $ height , $ of the type , $ attr ) = getimagesize ( "plane.jpg" );
     echo "width:." $ Width "<br>." ;
     Echo "height:." height $ . "<br>" ;
     / * image types of markers: 
        . 1 = GIF, 2 = JPG, PNG. 3 =, = the SWF. 4, the PSD. 5 =, =. 6 BMP, TIFF. 7 = (byte Intel Order), 
        . 8 TIFF = (byte Motorola Order), JPC =. 9, 10 = = JP2,11 JPX, the SWC 12 is = JB2,13 =, 
        14 = IFF, WBMP = 15, 16 = XBM. * / 
    Echo "format:.";
    echo "类型为:" . $attr . "<br>";
    print_r(getimagesize("plane.jpg"));
?>

 

Guess you like

Origin www.cnblogs.com/tianpan2019/p/10988747.html