How to make if _from
is Alone to _t
o --- to Select _Alone with the higher ID
Drop else from array
array (
0 =>
array (
'id' => '8',
'_from' => '2',
'_to' => '1',
'date' => '2018-10-15 15:51:07',
'message' => 'ccccccxxxxx',
'read' => '0',
'feedback' => '0',
'cnt' => '3',
),
1 =>
array (
'id' => '6',
'_from' => '1',
'_to' => '2',
'date' => '2018-10-15 15:47:01',
'message' => 'zzzzzzz1',
'read' => '1',
'feedback' => '0',
'cnt' => '1',
),