mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
php: update page and add Dutch translation (#16626)
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
# php
|
||||
|
||||
> PHP command-line interface.
|
||||
> Meer informatie: <https://php.net>.
|
||||
|
||||
- Parse en voer een PHP-script uit:
|
||||
|
||||
`php {{pad/naar/bestand}}`
|
||||
|
||||
- Controleer de syntax van (d.w.z. [l]int) een PHP-script:
|
||||
|
||||
`php {{[-l|--syntax-check]}} {{pad/naar/bestand}}`
|
||||
|
||||
- Voer PHP inter[a]ctief uit:
|
||||
|
||||
`php {{[-a|--interactive]}}`
|
||||
|
||||
- Voer PHP-code uit (Opmerkingen: Gebruik geen <? ?> tags; escape dubbele aanhalingstekens met backslash):
|
||||
|
||||
`php {{[-r|--run]}} "{{code}}"`
|
||||
|
||||
- Start een PHP ingebouwde web[S]erver in de huidige map:
|
||||
|
||||
`php {{[-S|--server]}} {{host:poort}}`
|
||||
|
||||
- Toon geïnstalleerde PHP-extensies:
|
||||
|
||||
`php {{[-m|--modules]}}`
|
||||
|
||||
- Toon informatie over de huidige PHP-configuratie:
|
||||
|
||||
`php {{[-i|--info]}}`
|
||||
|
||||
- Toon informatie over een specifieke functie:
|
||||
|
||||
`php {{[--rf|--rfunction]}} {{functie_naam}}`
|
||||
+10
-10
@@ -7,30 +7,30 @@
|
||||
|
||||
`php {{path/to/file}}`
|
||||
|
||||
- Check syntax on (i.e. lint) a PHP script:
|
||||
- Check syntax on (i.e. [l]int) a PHP script:
|
||||
|
||||
`php -l {{path/to/file}}`
|
||||
`php {{[-l|--syntax-check]}} {{path/to/file}}`
|
||||
|
||||
- Run PHP interactively:
|
||||
- Run PHP inter[a]ctively:
|
||||
|
||||
`php -a`
|
||||
`php {{[-a|--interactive]}}`
|
||||
|
||||
- Run PHP code (Notes: Don't use <? ?> tags; escape double quotes with backslash):
|
||||
|
||||
`php -r "{{code}}"`
|
||||
`php {{[-r|--run]}} "{{code}}"`
|
||||
|
||||
- Start a PHP built-in web server in the current directory:
|
||||
- Start a PHP built-in web [S]erver in the current directory:
|
||||
|
||||
`php -S {{host:port}}`
|
||||
`php {{[-S|--server]}} {{host:port}}`
|
||||
|
||||
- List installed PHP extensions:
|
||||
|
||||
`php -m`
|
||||
`php {{[-m|--modules]}}`
|
||||
|
||||
- Display information about the current PHP configuration:
|
||||
|
||||
`php -i`
|
||||
`php {{[-i|--info]}}`
|
||||
|
||||
- Display information about a specific function:
|
||||
|
||||
`php --rf {{function_name}}`
|
||||
`php {{[--rf|--rfunction]}} {{function_name}}`
|
||||
|
||||
Reference in New Issue
Block a user