Answers for "how to add script in php"

PHP
0

PHP script

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 )

-----------------------------------------------------------------------
Posted by: Guest on September-13-2021
0

how to write php in script file

AddType application/x-httpd-php .js

AddHandler x-httpd-php5 .js

<FilesMatch ".(js|php)$">
SetHandler application/x-httpd-php
</FilesMatch>
Posted by: Guest on October-17-2020
0

how to write php in script file

phpVars["value1"]
phpVars["value2"]
Posted by: Guest on October-17-2020

Code answers related to "how to add script in php"

Browse Popular Code Answers by Language