--- title: PHP slug: Glossary/PHP translation_of: Glossary/PHP original_slug: Tu-dien-thuat-ngu/PHP --- <p>PHP (a recursive initialism for PHP: Hypertext Preprocessor) is an open-source server-side scripting language that can be embedded into HTML to build web applications and dynamic websites.</p> <h2 id="Examples">Examples</h2> <h3 id="Basic_syntax">Basic syntax</h3> <pre class="brush: php notranslate"> // start of PHP code <?php // PHP code goes here ?> // end of PHP code</pre> <h3 id="Printing_data_on_screen">Printing data on screen</h3> <pre class="brush: php notranslate"><?php echo "Hello World!"; ?></pre> <h3 id="PHP_variables">PHP variables</h3> <pre class="brush: php notranslate"><?php // variables $nome='Danilo'; $sobrenome='Santos'; $pais='Brasil'; $email='danilocarsan@gmailcom'; // printing the variables echo $nome; echo $sobrenome; echo $pais; echo $email; ?></pre> <section class="Quick_links" id="Quick_Links"> <ol> <li><a href="http://php.net/">Official website</a></li> <li>{{Interwiki("wikipedia", "PHP")}} on Wikipedia</li> <li><a href="https://en.wikibooks.org/wiki/PHP_Programming">PHP</a> on Wikibooks</li> <li><a href="/en-US/docs/Glossary">MDN Web Docs Glossary</a> <ol> <li>{{Glossary("Java")}}</li> <li>{{Glossary("JavaScript")}}</li> <li>{{Glossary("Python")}}</li> <li>{{Glossary("Ruby")}}</li> </ol> </li> </ol> </section>