lunes, 3 de abril de 2017

Pintar las variables

<html>
<head><title> EJ01_tipos variables</title></head>
<body>
<?php

// 1. Crear variables de diferentes tipos

/*
  • Caracteres: 's'
  • Cadena: 'Ruben'
  • Numeros: '10, 12.58
*/
    $nombre='ruben';
    $edad='23';
    $estadoCivil='s';

    // 2. Pintar las variables

    echo "Nombre: ". $nombre . "<br>";
    echo "Edad: ". $edad . "<br>";
    echo "Estado Civil: ". $estadoCivil . "<br>";


    ?>
    </body>
    </html>

    No hay comentarios:

    Publicar un comentario