模拟页面获取的PHP数据

Posted 专注前端开发

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了模拟页面获取的PHP数据相关的知识,希望对你有一定的参考价值。

<?php 
return array(
  "aData" => array(//通勤方式
    "trafficType" => array(
      0 => array(
        "typeId" => 1,
        "iconFont" => "e7d9",
        "title" => "公共交通"
      ),
      1 => array(
        "typeId" => 2,
        "iconFont" => "e7d8",
        "title" => "骑行"
      ),
      2 => array(
        "typeId" => 3,
        "iconFont" => "e7da",
        "title" => "步行"
      ),
      3 => array(
        "typeId" => 4,
        "iconFont" => "e7d7",
        "title" => "驾车"
      )
    ),
    "trafficTime" => array(//时间区间
      "min" => 15,
      "max" => 60,
      "unit" => "分钟",
      "granularity" => 15,
      "defaultValue" => 15
    ),
    "expirePrice" => array(//价格区间
      "min" => 0,
      "max" => 10000,
      "unit" => "元",
      "granularity" => 500,//颗粒度
      "defaultMinValue" => 0,
      "defaultMaxValue" => 10500
    ),
    "listUrl" =>  "http://xxx.com.cn/sh/commuting/list" //通勤找房列表页地址
  )
);

 

以上是关于模拟页面获取的PHP数据的主要内容,如果未能解决你的问题,请参考以下文章

如何通过php的curl模拟ajax请求,获取其返回值

php 一个短代码片段准备在WooCommerce Thank You页面上输出货件跟踪UI。

PHP使用Curl实现模拟登录及抓取数据功能示例

php 在终端中模拟一点加载字符的片段

php模拟post请求,获取不到数据

php curl 模拟post表单向提交数据