PHP Syntax

How to save php file

PHP file save with ".php" extension. Example filename.php


How to write PHP code

A PHP script starts with <?php and ends with ?> tag.It is called php tag. You can open and close multiple time php tag in a php file.

Syntax

<?php /* write code here */ ?>

example:
<?php echo "Hello Friends"; ?>

See Output

How to write PHP code with HTML

See Output

A statement always ends with a semicolon (;)


About Us

Comsysapp.com is an educational website. Students and software developers can learn programming language tutorials. Comsysapp is very useful for beginners and professional developers. Comsysapp provides tutorial in easy language. Comsysapp.com has focus on simplicity.

Services

Comsysapp.com provides free tutorials like c, html, css, etc. All tutorials are free for beginner and professionals.


Terms of Use

comsysapp.com is not responsible for any mistake. We are not responsible if information made available on our website is incomplete or invalid. But comsysapp.com always try for zero-zero mistake.

Privacy policy

comsysapp.com does not collect any data from users. We use Google AdSense advertising on our website. We never ask personal or private information.


Sitemap

sitemap

copyright © 2023