Como declarar variables en php
A continuación se presenta el código básico de html y dentro de este, el código php para declarar variables de cualquier tipo de crean con el símbolo $ y se llaman de la misma manera
<html>
<head>
<title> variables </title>
<head>
<head>
<title> variables </title>
<head>
<body>
<?php
$nom="Pedro";
$num=5;
echo $nom;
echo "<br>";
echo $num;
?>
</body>
</html>
No hay comentarios:
Publicar un comentario