Jump to content

storing & retrieving array in external file


RLJ

Recommended Posts

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!

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.