CodeToLive

PHP Introduction

PHP (Hypertext Preprocessor) is a widely-used open source scripting language especially suited for web development.

What Can PHP Do?

Basic PHP Syntax


<?php
  // PHP code goes here
  echo "Hello, World!";
?>
      

PHP File Structure


<!DOCTYPE html>
<html>
<body>
<?php
  echo "My first PHP script!";
?>
</body>
</html>
      
Back to Tutorials