<!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Tipos de variables de codigo en Php 7 desarrollado por Rafael Santiago Cruz contactame al telefono 8129704095"> <link rel="stylesheet" href="/css/estilos.css" type="text/css" media="all" /> <title>Rafael Santiago Cruz | Codigo de aplicaciones | Variables Php 7</title> </head> <body> <h1>Rafael Santiago Cruz</h1> <h2>#Codigodeaplicaciones.xyz</h2> <h3>Variavles en PHP 7</h3> <!--Aqui van las variables--> <?php #Variable tipo cadena $nombre='Rafael'; #variable tipo númerico $numero=20; #variable tipo decimal $numeroDecimal=10.5; #variable tipo boleano $boleano=true; #' '.$numero. echo '<p>'.$nombre.' '.$numero.' '.$numeroDecimal.' '.$boleano.'</p>'; echo '<h3>'.$nombre.' '.gettype($nombre).'</h3>'; echo '<h3>'.$numero.' '.gettype($numero).'</h3>'; echo '<h3>'.$numeroDecimal.' '.gettype($numeroDecimal).'</h3>'; echo '<h3>'.$boleano.' '.gettype($boleano).'</h3>'; ?> <footer> <?php echo '<p><a href="/">Regresar al inicio</a></p>'; ?> </footer> </body> </html>