Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/07/2011, 12:20
vani18
 
Fecha de Ingreso: junio-2010
Mensajes: 752
Antigüedad: 13 años, 10 meses
Puntos: 5
impresion de la fecha con matriz

no me sale este codigo , a lo ultima cuando quiero imprimir el nombre del mes, que tendria que escribirse, segun la matriz, que puede ser. ..

ayuda ..


---------------

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Tipos de Variables</title>
</head>

<body>

<br /> Variables Num&eacute;ricas: <br />
<?php
$entero = 523;
$real = 3.14159;
echo "Un entero: " . $entero . "<br> \n";
echo "Un real: " . $real . "<br> \n";
?>

<br /> Variables Alfanum&eacute;ricas: <br />
<?php
$cadena = "Hola Mundo";
echo "Un texto: " . $cadena . "<br> \n";
?>

<br /> Arrays: <br />
<?php
$matriz = array('pais' => 'Argentina', 'provincia' => 'Corrientes');
echo "Pa&iacute;s: " . $matriz['pais'] . "<br> \n";
echo "Provincia: " . $matriz['provincia'] . "<br> \n";
?>

<?php
$mes = array('', 'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo',
'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre');


echo date("d") . " de " . $mes['$a'] ." de " . date("Y");





?>



</body>
</html>

----------------