Imagick::getVersion


wizard apg

RETURNS the ImageMagick API version.



<?php

array public static Imagick::getVersion();

?>

 


This function has no parameters.





This function returns the ImageMagick API copyright as a STRING and as a NUMBER.



  1 EXERCISE   

<?php

/*
Run this exercise to know the version

of imagick you are using
*/

$apiv Imagick::getVersion();

echo 
'<pre>';
print_r($apiv);
echo 
'</pre>';

?>

 RESULT   

Array
(
    [versionNumber] => 1690
    [versionString] => ImageMagick 6.9.10-68 Q16 x86_64 2024-01-12 https://imagemagick.org
)

  2 EXERCISE   

<?php

// Another way to view Version

$imag = new Imagick();

$apiv $imag->getVersion();

echo 
'<pre>';
var_dump($apiv);
echo 
'</pre>';

?>

 RESULT   

array(2) {
  ["versionNumber"]=>
  int(1690)
  ["versionString"]=>
  string(67) "ImageMagick 6.9.10-68 Q16 x86_64 2024-01-12 https://imagemagick.org"
}