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? Quote Link to comment 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. 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.