【发布时间】:2018-01-22 13:13:10
【问题描述】:
function getotherResource(){
$result = json_decode($this->curl->simple_get($this->API.'/otherResource'));
$html = "";
foreach($result as $r){
$html.="<div class='m-b-xs m-t'>
<label class='i-checks i-checks-md'>
<input type='checkbox' name='chkotherResource' id='v-".$r->qEmployee."' value='".$r->employeeName."'>
<i></i>
".$r->employeeName."
</label>
</div>";
}
echo $html;
}
this my display how to change the look like this with the array?
【问题讨论】:
标签: javascript php arrays web-services restful-url