PHP | Imagick getCopyright() Function

The Imagick::getCopyright() function is an inbuilt function in PHP which is used to returns the current ImageMagick API copyright which is used as a string.

Syntax:

string Imagick::getCopyright( void )

Parameter: This function does not accept any parameter.

Return Value: This function returns a string that contain the copyright notice of ImageMagick and Magickwand C API.

Below program illustrates the Imagick::getCopyright() function() in PHP:

Program:

filter_none

edit
close

play_arrow

link
brightness_4
code

<?php 
/*require_once('vendor/autoload.php');*/ 
  
/*Imagick Object*/
  
$image = new \Imagick();
  
/*Copyright of current Imagick Library*/
  
$string = $image->getCopyright();
  
/*String*/
  
echo $string;
?>

chevron_right


Output:

© 1999-2017 ImageMagick Studio LLC

Reference: http://php.net/manual/en/imagick.getcopyright.php



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.