BRADERY Posted October 24, 2010 Share Posted October 24, 2010 ok say I have a file that has something like 123456 abcde 654321 edcba in a file.. how would I go about having the script pull "123456" and make it a variable in the script.. and "abcde" a variable? and then "654321" a variable but is set in an array so that 123456 and 654321 are both the same variable but like $variable[0] and abcde and edcba would be $variable[1] what do I have to do? Link to comment https://forums.phpfreaks.com/topic/216682-this-should-be-simple-but-i-dont-know-that-much-php/ Share on other sites More sharing options...
wannabephpdude Posted October 24, 2010 Share Posted October 24, 2010 Classic case of flat file database it seems with a slight twist... your separator will be a space. Have a look at the following: Flat File Databases also see this => explode() for making arrays. Link to comment https://forums.phpfreaks.com/topic/216682-this-should-be-simple-but-i-dont-know-that-much-php/#findComment-1125786 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.