i am using cakephp 3.1. in that i need to use concat the firstname and lastname with space using list of find method..
I tried below code it return with semi columns but i need space instead of semi columns.
Code:
$query = $articles->find('list', [
'keyField' => 'id',
'valueField' => ['firstname','lastname']
]);
$data = $query->toArray();
I got below result :
$data = [
1 => 'rahul;patel',
2 => 'raj;patel',
];
But i need space instead of semi column (;).
Please guys help me.
Thanks in advance.