Home >Backend Development >PHP Tutorial >Summarize some common commands under the php command line
Recommended: "PHP Video Tutorial"
1 php -m
Display modules compiled into the kernel
2 php -v
Display php version number
3 php --ini
Display configuration file name
4 php -h
Display which command line commands are available
View class/function/extension information , the same as using phpinfo() on the web server
Display information about the
Display information about the
Display information about the
Display the configuration information of the extension
Display the name information about the zend extension
(2)$argc is the number of parameters
We have an index.php script
echo "Command line parameters: n";
foreach ($argv as $index => $arg) {
echo " {$index} : {$arg}\n";}Our command line runs php index.php 1 2 3The output result is as follows:
The above is the detailed content of Summarize some common commands under the php command line. For more information, please follow other related articles on the PHP Chinese website!