Jump to content

Efficient File to Array Procedure


niconico

Recommended Posts

I'm trying to duplicate the following hard-coded array assignment by structuring a data file and reading it into an array.

[code]$elements = array("group"=>"one","0"=>8,"1"=>5,"2"=>8,"3"=>7,"4"=>9,"5"=>8,"6"=>7,"7"=>7,"8"=>8,"9"=>8,"d"=>3,"c"=>3);[/code]

I'm trying to find the fastest most efficient way of getting these values into an indexed array called $elements.

Your suggestions are appreciated.  Thanks...
Link to comment
https://forums.phpfreaks.com/topic/27340-efficient-file-to-array-procedure/
Share on other sites

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.