# Get PHP Version
: '
@ to silent errors
grep to pull search term
-m 1 to limit output to --max-count 1 line
-r run
'
php -r \@phpinfo\(\)\; | grep 'PHP Version' -m 1
# OUTPUT:
: '
PHP Version => 5.6.7
'
# Get All PHP Info
php -r \@phpinfo\(\)\;
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.