How to Close a PHP Statement
PHP is an online coding language used to create websites and online Web applications. When you write a script in PHP, you have to start and end the script with specific tags so the Web server knows when the PHP statement starts and stops. Closing a PHP statement is universal across all Web servers and programming interfaces.
Instructions
-
-
1
Open the PHP script that needs a closing tag.
-
2
Scroll to the bottom of the PHP script and add a new blank line.
-
-
3
Type the text, without the quotes, "?>" in the new blank line. This is the closing tag for PHP and closes out the script.
-
1