View unanswered posts | View active topics It is currently Sat Mar 24, 2018 7:10 am

Reply to topic  [ 2 posts ] 
 File manipulation 
Author Message
Junior Member

Joined: Sat Oct 01, 2005 8:03 am
Posts: 2
Plz tell me how to Extract a portion off a file using a particular string ...

Sat Oct 22, 2005 10:44 am
Report this post
Junior Member

Joined: Fri Dec 02, 2005 8:23 pm
Posts: 6
To read the file into a string and remove the \n that it adds use . . .

$myStr = trim(file_get_contents("my_file.txt"));

file_get_contents at for to see how to use the sub string options.

Fri Dec 02, 2005 11:23 pm
Report this post
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
© Copyright 2003-2008 The ultimate PHP Editor and PHP IDE site.