26 lines
		
	
	
		
			572 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
		
		
			
		
	
	
			26 lines
		
	
	
		
			572 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
|   | --- | ||
|  | title: Syntax | ||
|  | localeTitle: Sintaxis | ||
|  | --- | ||
|  | ## Sintaxis
 | ||
|  | 
 | ||
|  | PHP es un lenguaje que le permite incluir contenido dinámico en páginas web estáticas. Está escrito en línea con html, simplemente cambiar el nombre de un archivo .html a .php (servidor web debe tener instalado PHP) para empezar. | ||
|  | 
 | ||
|  | ```PHP | ||
|  | <!DOCTYPE html>  | ||
|  |  <html>  | ||
|  |  <head>  | ||
|  |  <title>PHP Example</title>  | ||
|  |  </head>  | ||
|  |  <body>  | ||
|  |  <h1>PHP Example</h1>  | ||
|  |  <?php  | ||
|  |   echo "Hello World from PHP!";  | ||
|  |  ?>  | ||
|  |  </body>  | ||
|  |  </html>  | ||
|  | ``` | ||
|  | 
 | ||
|  | #### Más información:
 | ||
|  | 
 | ||
|  | *   [php.net - Documentación de PHP](https://secure.php.net/docs.php) |