To find the PHP version using the command line, follow these steps:
main.php7 chars2 lines
This command will display your PHP version on the command line. For example:
main.php55 chars2 lines
Alternatively, you can create a PHP file with the following code to display the version on a web page:
main.php30 chars4 lines
When you navigate to this PHP file in a web browser, it will display the PHP version.
gistlibby LogSnag