<?php
$data = array(
'report_id' => (int)1,
'openDate' => '2015-09-08 12:06:00',
'openedBy' => 42,
'response' => array(
'text' => 'sdfsdfsdfsdf',
'creationDate' => '2015-09-08 12:06:00',
'author' => 42
),
'credits' => array(
'member_id' => 24,
'campaign_id' => 2,
'category' => 5,
'description' => 'sdfsdfsdf',
'date' => '2015-09-08 12:06:00',
'amount' => 2
)
);
//if(!empty($r['publish'])) {
array_merge ($data, array('published'=> 1));
//}
die(var_dump($data));
- Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
- array(5) {
["report_id"]=>
int(1)
["openDate"]=>
string(19) "2015-09-08 12:06:00"
["openedBy"]=>
int(42)
["response"]=>
array(3) {
["text"]=>
string(12) "sdfsdfsdfsdf"
["creationDate"]=>
string(19) "2015-09-08 12:06:00"
["author"]=>
int(42)
}
["credits"]=>
array(6) {
["member_id"]=>
int(24)
["campaign_id"]=>
int(2)
["category"]=>
int(5)
["description"]=>
string(9) "sdfsdfsdf"
["date"]=>
string(19) "2015-09-08 12:06:00"
["amount"]=>
int(2)
}
}
preferences:
240.28 ms | 405 KiB | 378 Q