Re: Removing Arrays With Certain Keys From Larger Array
| From: | Steve Keller | Date: | Tue, 08 Jul 2003 21:45:12 +0000 |
| Subject: | Re: Removing Arrays With Certain Keys From Larger Array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154441@lists.php.net to get a copy of this message | ||
At 7/8/2003 02:18 PM, jwulff wrote:
I have an array exampled below. I want to remove and use certain nested arrays from the larger array where the key == title, size, day, etc... How does an idiot like myself accomplish this?You can reference it the same as you reference any other array. For example, you used "print_r" to display the sample array, to print a sub array you do the same thing: print_r($myArray[0]); That'll print the array under the "0" key. If you wanted element 1 of the array under key 0, then you'd do something like $myValue = $myArray[0][1]; Hope this helps. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax) Email: skeller@healthtvchannel.org Web: www.healthtvchannel.org