- strftime: documentation ( source)
- setlocale: documentation ( source)
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Un nĂºmero aleatorio</title>
</head>
<body>
<p>Hoy es
<?php
setlocale(LC_ALL, "es_ES");
$dia=strftime('%A');
echo $dia;
?>
</p>
</body>
</html>