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