How to merge two or morethen two Array in php
$resstatus['status'] = 'logged in';
$resphone['phone']=$addressdata['telephone'];
$result['getdata']
= $customerData;
$result=array_merge($resstatus,$resphone,$customerData);
echo
json_encode($result);
Merging Sataus…
$result['status']
= 'logged in';
$resphone['phone']=$addressdata['telephone'];
//$result['getdata']
= $customerData;
$get=array_merge($resphone,$customerData);
$result['getdata']=$get;
//$result=array_merge($resphone,$customerData);
echo
json_encode($result);
//echo
json_encode($customerData);
No comments:
Post a Comment