Php到VB.NET转换需要无法转换 [英] Php to VB.NET convertion needed unable to convert

查看:77
本文介绍了Php到VB.NET转换需要无法转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

$prebook=array(
            'sourceCity'=>$_POST['source'], 
            'destinationCity'=>$_POST['dest'],
            'doj'=>$_POST['doj'],
            'routeScheduleId'=>$_POST['routeid'],
             'boardingPoint'=>array(
                 'id'=>$id,
                 'location'=>$location,
                 'time'=>$time
             ),     
             'customerName'=>$_POST['fname'],
             'customerLastName'=>$_POST['lname'],
             'customerEmail'=>$_POST['email'],
             'customerPhone'=>$_POST['mobileno'],
             'emergencyPhNumber'=>$_POST['emc-number'],
             'customerAddress'=>$_POST['address'],
             'blockSeatPaxDetails'=>array(array(
                 'age'=>$_POST['age'][$key],
                 'name'=>$value,
                 'seatNbr'=>$_POST['seat-no'][$key],
                 'Sex'=>$_POST['gender'.$no],
                 'fare'=>$_POST['base-fare'][$key],
                 'totalFareWithTaxes'=>$_POST['amount'][$key],
                 'ladiesSeat'=>$ladies,
                 'lastName'=>$_POST['plname'][$key],
                 'mobile'=>$_POST['mobileno'],
                 'title'=>'Mrs',
                 'email'=>$_POST['email'],
                 'idType'=>$_POST['idtype'],
                 'idNumber'=>$_POST['id-number'],
                 'nameOnId'=>$value,
                 'primary'=>true,
                 'ac'=>$ac,
                 'sleeper'=>$sleeper
               )),
               'inventoryType'=>$_POST['invtype']             
          );
          $json=json_encode($prebook);





我的尝试:





What I have tried:

php to vb.net convertion needed unable to convert

推荐答案

prebook = array(
'sourceCity'=>
prebook=array( 'sourceCity'=>


_POST ['source'],
'destinationCity'=>
_POST['source'], 'destinationCity'=>


_POST ['dest'],
'doj'=>
_POST['dest'], 'doj'=>


这篇关于Php到VB.NET转换需要无法转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆