note 126125 added to language.basic-syntax.phptags
| From: | admin at bharatt dot com dot np | Date: | Mon, 31 May 2021 04:51:52 +0000 |
| Subject: | note 126125 added to language.basic-syntax.phptags | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216452@lists.php.net to get a copy of this message | ||
You may want to know that removing semicolon is optional sometime but need to know the condition
when it can be removed and when it can't be.
-------------------------------------------------------------------------
// Example 1: PHP script with closing tag at the end.
<?php
// php code
// you can remove semicolon
mysqli_close( $db )
?>
// Example 2: PHP script without closing tag at the end.
<?php
// php code
// you can't remove semicolon
mysqli_close( $db )
-----------------------------------------------------------------------
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 202.51.92.145)
----
Manual Page -- https://php.net/manual/en/language.basic-syntax.phptags.php
Edit -- https://main.php.net/note/edit/126125
Del: integrated -- https://main.php.net/note/delete/126125/integrated
Del: useless -- https://main.php.net/note/delete/126125/useless
Del: bad code -- https://main.php.net/note/delete/126125/bad+code
Del: spam -- https://main.php.net/note/delete/126125/spam
Del: non-english -- https://main.php.net/note/delete/126125/non-english
Del: in docs -- https://main.php.net/note/delete/126125/in+docs
Del: other reasons-- https://main.php.net/note/delete/126125
Reject -- https://main.php.net/note/reject/126125
Search -- https://main.php.net/manage/user-notes.php