1. Home
  2. Computer Science MCQs
  3. PHP
  4. What is the correct way to end a PHP statement?

Added 20 Jan 2024

What is the correct way to end a PHP statement?

  1. . (dot)
  2. ; (semicolon) Correct answer
  3. : (colon)
  4. , (comma)

Correct answer

B. ; (semicolon)

16 views

MCQSEXAM

Explanation

All PHP statements must end with a semicolon (;).

Reference

Asked in: PHP Certification

https://www.php.net/manual/en/language.basic-syntax.php

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More PHP MCQs

Practise all PHP MCQs

Similar MCQs