-
-
Save parzibyte/89bb6d9065347f44c2c05d709cc1feaf to your computer and use it in GitHub Desktop.
Leer archivo con PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hola, yo soy el contenido de un archivo de texto | |
Seguramente seré leído con PHP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Leer archivo de texto con PHP | |
https://parzibyte.me/blog | |
*/ | |
$nombre_archivo = "letra.txt"; | |
// Obtener contenido de archivo como cadena | |
$contenido = file_get_contents($nombre_archivo); | |
echo "El contenido es: " . $contenido; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment