php
PHP command-line interface. More information: https://www.php.net/manual/en/features.commandline.options.php.
- Parse and execute a PHP script:
php
- Check syntax on (i.e. [l]int) a PHP script:
php
- Run PHP inter[a]ctively:
php
- Run PHP code (Notes: Don't use
<? ?>tags; escape double quotes with backslash):
php ""
- Start a PHP built-in web server in the current directory:
php :
- List installed PHP extensions:
php
- Display information about the current PHP configuration:
php
- Display information about a specific function:
php
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
