<?php
$input = array(
array(
'url' => 'ellen.com',
'des' => 'w',
'size' => '850'
),
array(
'url' => 'ellen.com',
'des' => 'w',
'size' => '640'
),
array(
'url' => 'ellen.com',
'des' => 'w',
'size' => '330'
),
array(
'url' => 'ellen.com',
'des' => 'w',
'size' => '240'
)
);
echo implode(', ', array_map(function ($entry) {
return $entry['url'] . ' ' . $entry['size'] . $entry['des'];
}, $input));
preferences:
16.37 ms | 402 KiB | 5 Q