In PHP, a line of code is terminated with a ______.

  • Comma (,)
  • Semicolon (;)
  • Period (.)
  • Colon (:)
In PHP, a line of code is terminated with a semicolon (;). The semicolon is a statement separator and it's necessary to end a statement before starting a new line with a new statement. This makes the code easier to read and understand. 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 *