common Posted May 16, 2009 Share Posted May 16, 2009 hey i have a .txt file but want to convert the text into a string, i am not quite sure how to do that. Can anyone help me... Link to comment https://forums.phpfreaks.com/topic/158375-files-and-strings/ Share on other sites More sharing options...
wildteen88 Posted May 16, 2009 Share Posted May 16, 2009 Do you mean you're wanting to read the contents of the text file into a variable? Is so you can use file_get_contents or use fopen, fread and fclose Link to comment https://forums.phpfreaks.com/topic/158375-files-and-strings/#findComment-835215 Share on other sites More sharing options...
common Posted May 16, 2009 Author Share Posted May 16, 2009 yeah that will work, thanks... Link to comment https://forums.phpfreaks.com/topic/158375-files-and-strings/#findComment-835216 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.