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 Link to comment https://forums.phpfreaks.com/topic/30098-just-a-general-question-on-explode-answered/ Share on other sites More sharing options...
roopurt18 Posted December 10, 2006 Share Posted December 10, 2006 explode returns an array, not a string. Link to comment https://forums.phpfreaks.com/topic/30098-just-a-general-question-on-explode-answered/#findComment-138379 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? Link to comment https://forums.phpfreaks.com/topic/30098-just-a-general-question-on-explode-answered/#findComment-138380 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] Link to comment https://forums.phpfreaks.com/topic/30098-just-a-general-question-on-explode-answered/#findComment-138399 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.