Results 1 to 1 of 1
Jan 13, 2001, 07:56 #1
- Join Date
- Jun 2000
- 0 Post(s)
- 0 Thread(s)
What is the best way to build an array containing the following contents please?:
Array ( [property] => Array ( [property1] => Array ( [description] => put in description [contact] => put in contact ) ) [property2] => Array ( [description] => put in description2 [contact] => put in contact2 ) )
i.e. the highest level array is property that contains an array or properties and each of these contain a description and contact information.
I'm not sure which method to use, they'll be around 100 properties so some form of loop is required.
At the moment, the data for the description of the properties and contact information are stored in another (sequentially indexed) array upto say 200 for simplicity:
i.e. property1 description = $data;
property1 contact = $data;
property2 description = $data;
property2 contact = $data;
Thank you, if you can help....!