Jump to content

multidimensional array problem


ts2000abc

Recommended Posts

I should make array such as this; by combining two arrays:

 

    $days = array(
        2=>array(NULL,'NULL',''),
        3=>array(NULL,'NULL',''),
        8=>array(NULL,'NULL',''),
        22=>array(NULL,'NULL',''),
        26=>array(NULL,'NULL',''),
    );

 

those values 2,3,8...etc should be taken from another array. So is it possible somehow to use foreach (or other) loop for creating this multidimensional array. (the '=>' marking is giving trouble when im trying create this array through foreach loop)

Link to comment
https://forums.phpfreaks.com/topic/151805-multidimensional-array-problem/
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.