Skip to content

Commit 94bf9ae

Browse files
authored
Merge pull request mouredev#6767 from Franckdot/codigoPropio
#00 - PHP
2 parents d9037f0 + 73f165e commit 94bf9ae

File tree

1 file changed

+27
-0
lines changed
  • Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/php

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
//https://www.php.net/
3+
//Esto es un solo comentario para lineas de codigo individuales
4+
/* Este es un comentario
5+
para usar en varias lineas de codigo */
6+
7+
//variable
8+
$myFirstVariable = "PHP";
9+
//constante
10+
define("PI", 3.14);
11+
12+
//tipos de datos
13+
//entero
14+
$valorEntero = 3;
15+
//float
16+
$valorPi = 3.14;
17+
//cadena
18+
$valorCadena = "Cadena";
19+
//boleano
20+
$valorBooleano = true;
21+
$valorBooleano1 = false;
22+
//null (indica que no hay valor)
23+
$valorVacio = null;
24+
25+
echo 'Hola, ',$myFirstVariable;
26+
27+
?>

0 commit comments

Comments
 (0)