$Jurisdiction = array(
"agents" => array(
"John" => "Mensah",
"Sumani" => "Abdulai",
"Eric" => "Adotey",
"Sam" => "Darko",
"Moses" => "Adjei",
"Kwabena" => "Kyeremeh"
),
"jurisdiction" => array(
"Jurisdiction" => array(),
"Owner" => array(),
"Agent" => array(),
"Transaction" => array(),
"Vendor" => array()
),
"num_agents" => 3
);
$juris = Set::extract('/agents', $Jurisdiction);
foreach($juris[0]['agents'] as $fname => $lname):
echo("<br /><br />my name is: " . $fname);
echo("<br />my surname is: " . $lname);
endforeach;
which outputs ==>>
my name is: John
my surname is: Mensah
my name is: Sumani
my surname is: Abdulai
my name is: Eric
my surname is: Adotey
my name is: Sam
my surname is: Darko
my name is: Moses
my surname is: Adjei
my name is: Kwabena
my surname is: Kyeremeh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---