Removed some code duplicates.
Added shell function to retrieve the current PHP version
Added an extra digit to the version number output
Merge pull request #301 from mdkholy/shell-function

Added shell function to retrieve the current PHP version