<?php
$tmp = [
'email' => 'email',
'uuid' => 'uuid',
'format' => 'format',
'adress' => 'adress',
'lastname' => 'lastname',
'firstname' => 'firstname',
];
$users[] = array(
'ckey' => strlen(trim($tmp['uuid'])) ? $tmp['uuid'] : 'test',
'language' => isset($tmp['language'])? trim($tmp['language']) : 'de',
'newsletter_format' => isset($tmp['format'])? trim(strtolower($tmp['format'])) : 'html',
'adress' => isset($tmp['adress'])? trim($tmp['adress']) : '',
'last_name' => isset($tmp['lastname'])? trim($tmp['lastname']) : '',
'first_name' => isset($tmp['firstname'])? trim($tmp['firstname']) : '',
'email' => trim($tmp['email']),
'mobile' => '0',
);
var_dump($users);
preferences:
47.44 ms | 402 KiB | 5 Q