1. php -m
Display the 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
##5. php --info View class/function/extension information, just like using phpinfo() on the web server6. php --rf<?php echo '命令行参数个数: ' . $argc . "n"; echo "命令行参数:n"; foreach ($argv as $index => $arg) { echo " {$index} : {$arg}\n"; }
The above is the detailed content of Summary of common commands under the php command line. For more information, please follow other related articles on the PHP Chinese website!