<?php $obj = (object) [ 'data' => array( "temp_service_id" => "3", "name"=> "health checkup", "price"=>"10000", "service_id"=> "41",) ]; $ar = array((object)[ "fees"=> "2000", "service_name"=> "Anaesthesiologist" ], (object)[ "fees"=> "300", "service_name"=> "Andrologist" ]); $obj->data['data2'] = $ar; print_r($obj);
You have javascript disabled. You will not be able to edit any code.