Hi,
I'm new to PHP and I need some help regarding array manipulation.
I have the following m-dim array and I would like to know how to print the "Key" (50,51,52,53...)
I'm new to PHP and I need some help regarding array manipulation.
I have the following m-dim array and I would like to know how to print the "Key" (50,51,52,53...)
Code:
$Pages = array(
"50" => array (
"Title" => "some text 50",
"Desc" => "some text",
"Content" => "some text" ),
"51" => array (
"Title" => "some text 51",
"Desc" => "some text",
"Content" => "some text" ),
"52" => array (
"Title" => "some text 52",
"Desc" => "some text",
"Content" => "some text" ),
"53" => array (
"Title" => "some text 53",
"Desc" => "some text",
"Content" => "some text" ),
);
Code:
foreach ($Pages as $P) {
print $P['Title'] . $P . "<br>";
}