PHP 5 & 7 Basic Syntax

PHP 5 & 7 Basic Syntax
PHP 5 & 7 Basic Syntax, PHP syntax execute on the server and then return value to browser. PHP syntax start with <?php and end with ?>

<?php
// PHP code goes here
?>
PHP source use default file extension with ".php". And PHP there are two basic ways to output like echo and print.

Below, example test.php of a simple PHP file on a web page:

 <!DOCTYPE html>
<html>
<body>

<h1>My first PHP page</h1>

<?php
echo "Hello World!";
?>

</body>
</html> 
 

Gatot

Penulis merupakan seorang IT profesional baik network engineer, software development(Delphi, Java, Android, iOS, PHP, NextJs, Golang, Flutter), System Analysis, SEO, database administrator, troubleshooting, dan juga content creator(facebook, youtube, atau tiktok). Tulisan merupakan bagian yang pernah dikerjakan dan dilakukan setiap hari.

Lebih baru Lebih lama

Contact