phpinfo()
shows:
several info...
mcrypt support enabled
mcrypt_filter support enabled
Version 2.5.8
several info...
But how can I get ONLY the version of MCRYPT?
For example:
echo phpversion('intl');
or:
gd_info()['GD Version'];
I searched Google but could not find an answer, and phpinfo()
is a lot of info.
PHP has a built-in function called
phpversion
. [ DOCUMENTATION ]This function allows you to retrieve the version of an installed extension. You'd use it like so: