Answers for "implode array asociativo php"

PHP
5

php implode array

$values = array_map('array_pop', $array);
$imploded = implode(',', $values);
Posted by: Guest on March-03-2020
0

php implode associative array

$users = [
	'user1' => '[email protected]',
	'user2' => '[email protected]'
];

echo implode(', ',$users);
// "[email protected], [email protected]"
Posted by: Guest on November-18-2020

Browse Popular Code Answers by Language