Last Updated: February 25, 2016
·
782
· devopensource

Essential PHP command-line options

View PHP module info

  • php --ri memcache

View internal function, class or extension

  • php --re memcache

Display load module

  • php –m

Run code from command-line

  • php -r "$foo = 'hello!'; $foo = strtoupper($foo); echo $foo;"