chriscloyd Posted December 19, 2008 Share Posted December 19, 2008 how can i get info from a text file for example i have this file example zipcodes.txt setup .... 85640 AGUA LINDA 85320 AGUILA 85321 AJO 86506 ALLENTOWN 85920 ALPINE 85640 AMADO 85645 AMADO 85086 ANTHEM 85217 APACHE JCT 85218 APACHE JCT 85219 APACHE JCT 85220 APACHE JCT 85278 APACHE JCT 85290 APACHE JCT 85217 APACHE JUNCTION 85218 APACHE JUNCTION 85219 APACHE JUNCTION 85220 APACHE JUNCTION 85278 APACHE JUNCTION 85290 APACHE JUNCTION how can i for example for each line set two variables the first one would be zipcode and secodn one would be city like for the first one take the first five characters and set string to $zipcode and second one after 5 characters to $city Link to comment https://forums.phpfreaks.com/topic/137644-solved-get-info-from-text-file/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.