Bird
0
0

After installing PHP, which command in the terminal shows the installed PHP version?

easy📝 Conceptual Q2 of 15
PHP - Basics and Execution Model
After installing PHP, which command in the terminal shows the installed PHP version?
Aphp -v
Bphp --install
Cphp version
Dphp check
Step-by-Step Solution
Solution:
  1. Step 1: Recall PHP version command

    The standard command to check PHP version is 'php -v'.
  2. Step 2: Verify other options

    Other options like 'php --install', 'php version', and 'php check' are invalid commands.
  3. Final Answer:

    php -v -> Option A
  4. Quick Check:

    PHP version command = php -v [OK]
Quick Trick: Use 'php -v' to check PHP version quickly [OK]
Common Mistakes:
  • Using incorrect commands like 'php version'
  • Confusing with installation commands
  • Trying commands not recognized by PHP CLI

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PHP Quizzes