$myFile = "4-24-11.txt";
$lines = file($myFile);//file in to an array
echo $lines[1]; //line 2
More Related Contents:
- How to delete a line from the file with php?
- How to save memory when reading a file in Php?
- PHP, get file name without file extension
- Upload a file using PHP
- Need to write at beginning of file with PHP
- Reading and Writing Configuration Files
- PHP list all files in directory [duplicate]
- Read a plain text file with php
- Deleting all files from a folder using PHP?
- PHP: Check if a file is loaded directly instead of including?
- Read a file backwards line by line using fseek
- Save current page as HTML to server
- How to read a list of files from a folder using PHP? [closed]
- uploading a file in chunks using html5
- PHP Warning: move_uploaded_file() unable to move
- Laravel 5.3 multiple file uploads
- PHP what is the best way to write data to middle of file without rewriting file
- File not uploading PHP
- Create new XML file and write data to it?
- PHP Case Insensitive Version of file_exists()
- How can I view/open a word document in my browser using with PHP or HTML
- Replace string in text file using PHP
- Save PHP variables to a text file
- How can I get the current script file name, but without the extension “.php”?
- A PHP script to let users download a file from my website without revealing the actual file link in my website?
- Copy file from remote server or URL [duplicate]
- Can I read a .TXT file with PHP?
- Is this the most efficient way to get and remove first line in file?
- How download big file using PHP (low memory usage)
- Sort directory files by creation datetime in Windows filesystem