إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية


 
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 04-09-2010, 09:40 PM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,670
عدد الـنقاط :3341
 تقييم المستوى : 2140

I've been looking for examples of this but haven't found one that's clear to me.


I have a simple array of arrays:

$race = array(
"race1" => array("Date 1", "Town 1"),
"race2" => array("Date 2", "Town 2")
);

I want a foreach loop that will yield the key and a specific value for a dropdown menu:
Code:
Town 1
Town 2
So if I wanted to pull out "race1, Town 1" and "race2, Town 2" how do I do that? I know it's got to be simple but I can't find it. I'm playing with array_keys($race) as $row which gets me the key but I have no idea how to get the specific value. I tried using that key to just call it from the array but my syntax must have been wrong; I used $race['$row'][1].
__DEFINE_LIKE_SHARE__
رد مع اقتباس
 

مواقع النشر (المفضلة)


تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة



الساعة الآن 02:59 AM


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML