Anonymous functions function() use ()

Anonymous functions in PHP may use this expression: function($parameter) use ($value) { } What does it means? This function, simply use a reference to the variable $value that then returns to the parent scope. For example: $value = 5; $customFunction = function($parameter) use ($value) { $value = $value + $parameter; } call_user_func ( $customFunction, 2[…]

Install Imagick

Imagick is a native extension of php to create and modify images using the API ImageMagick. To install it in Ubuntu you will have to perform the following steps: 1. Go to the installation directory for ImageMagick: cd /usr/local/src 2. Download ImageMagick: You can download it from: Link to download page ImageMagick Example: sudo wget[…]