PHP 8 · Command line

Read a configuration value

Print the value of a single configuration setting.

php -r "echo ini_get('memory_limit'), PHP_EOL;"

Official PHP 8 documentation

More command line commands

All command line commands · PHP 8 cheatsheet

Was this page helpful?