Get a specific string from a text file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
klevis miho
Forum Contributor
Posts: 413
Joined: Wed Oct 29, 2008 2:59 pm
Location: Albania
Contact:

Get a specific string from a text file

Post by klevis miho »

How can I grab a string (for example "example string") from a given text file?
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Get a specific string from a text file

Post by jackpf »

What's the point in taking it from a text file if you already know what the string is?

Do you mean you want to read the file's contents?
klevis miho
Forum Contributor
Posts: 413
Joined: Wed Oct 29, 2008 2:59 pm
Location: Albania
Contact:

Re: Get a specific string from a text file

Post by klevis miho »

for example I want to grab with cURL function a website, and I just need just one div to get.
jsemmanuel
Forum Newbie
Posts: 1
Joined: Tue Aug 26, 2008 2:09 pm

Re: Get a specific string from a text file

Post by jsemmanuel »

Post Reply