ted_chou12 Posted December 10, 2006 Share Posted December 10, 2006 I just have a general simple question to ask, if you only have one piece of data stored in your text file, do you always have to use the function explode to get it into a string?Thanks Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted December 10, 2006 Share Posted December 10, 2006 explode returns an array, not a string. Quote Link to comment Share on other sites More sharing options...
ted_chou12 Posted December 10, 2006 Author Share Posted December 10, 2006 thanks for replying, here is an example to clarify my point:my text file[code]This is a the data[/code]what i want to do is get it into a string in the php page, what function would be able to do that? Quote Link to comment Share on other sites More sharing options...
bljepp69 Posted December 10, 2006 Share Posted December 10, 2006 Check out [url=http://www.php.net/manual/en/function.file-get-contents.php]file_get_contents()[/url] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.