Last Updated: February 25, 2016
·
790
· 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;"