RLJ Posted December 6, 2010 Share Posted December 6, 2010 Hi, just a very simple question: I have an array as follows: $langList = array('English', 'French', 'German', 'Dutch'); What's the easiest way to store this array in an external file, so that multiple php scripts can access its contents? And what is then the php line I need to retrieve the array from the external file? Thanks! Link to comment https://forums.phpfreaks.com/topic/220845-storing-retrieving-array-in-external-file/ Share on other sites More sharing options...
kenrbnsn Posted December 6, 2010 Share Posted December 6, 2010 You would using an include file. Ken Link to comment https://forums.phpfreaks.com/topic/220845-storing-retrieving-array-in-external-file/#findComment-1143639 Share on other sites More sharing options...
RLJ Posted December 10, 2010 Author Share Posted December 10, 2010 Cheers! Link to comment https://forums.phpfreaks.com/topic/220845-storing-retrieving-array-in-external-file/#findComment-1145424 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.