Friday, January 8, 2016



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

Featured Post

What is JavaScript? What is the role of JavaScript engine?

  The JavaScript is a Programming language that is used for converting static web pages to interactive and dynamic web pages. A JavaScript e...