How do PHP statements end?

  • With a colon (:)
  • With a comma (,)
  • With a semicolon (;)
  • With a period (.)
In PHP, statements end with a semicolon (;). The semicolon is a statement separator, allowing you to put multiple statements on the same line if desired. It's also necessary to end a statement before starting a new line with a new statement. Learn more: https://www.php.net/manual/en/language.basic-syntax.instruction-separation.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *