I have a multidimensional array that includes identifiers and URLs. I would like to output only urls.
$abstract_details = array(
array(
'id' => 68769782222,
'url' => 'http://yourclick.ch'
),
array(
'id' => 111,
'url' => 'http://google.com'
)
);
foreach ($abstract_details as $abstract_detail) {
foreach ($abstract_detail as $get_abstract_detail) {
$result .= $get_abstract_detail . '<br>';
}
}
When I run my code, I get both information. How can I take control of what I want to show?
source
share