PHP
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.
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.
## Examples
### Basic syntax
```php
// start of PHP code
<?php
// PHP code goes here
?>
// end of PHP code
```
### Printing data on screen
```php
<?php
echo "Hello World!";
?>
```
### PHP variables
```php
<?php
// variables
$name='Danilo';
$surname='Santos';
$country='Brasil';
$email='danilocarsan@gmail.com';
// printing the variables
echo $name;
echo $surname;
echo $country;
echo $email;
?>
```
## See also
- [Official website](https://www.php.net/)
- [PHP](https://en.wikipedia.org/wiki/PHP) on Wikipedia
- [PHP programming](https://en.wikibooks.org/wiki/PHP_Programming) on Wikibooks
- Related glossary terms:
- Java
- JavaScript
- Python
- Ruby
Cite this
"PHP". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Glossary/PHP JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy