<?php
array public static Imagick::getVersion();
?>
<?php
/*
Run this exercise to know the version
of imagick you are using
*/
$apiv = Imagick::getVersion();
echo '<pre>';
print_r($apiv);
echo '</pre>';
?>
Array ( [versionNumber] => 1690 [versionString] => ImageMagick 6.9.10-68 Q16 x86_64 2024-04-16 https://imagemagick.org )
<?php
// Another way to view Version
$imag = new Imagick();
$apiv = $imag->getVersion();
echo '<pre>';
var_dump($apiv);
echo '</pre>';
?>
array(2) { ["versionNumber"]=> int(1690) ["versionString"]=> string(67) "ImageMagick 6.9.10-68 Q16 x86_64 2024-04-16 https://imagemagick.org" }