查询王者荣耀英雄
getMessage();
// }
//}
// if ($succ['name'])
// {
// $succ['name'] = $success['name'];
// }
//if ($succ['attack_range'])
// {
// $succ['attack_range'] = $success['attack_range'];
//}
// if ($succ['role_main'])
//{
// $succ['role_main'] = $success['role_main'];
// }
// if ($succ[]) {
// code...
// }
// $succ['role_assist'] = $success['role_assist'];
// echo $e = count($success);exit;
$p = count($success)>2 ?1:0;
if ($p==1)
{
for ($i = 0; $i < count($success)-2; $i++)
{
@$succ['data'][$i] = $success[$i];
}
}else{
$succ['data'] = $success[0];
}
if ($type ==='array')
{
exit(print_r($succ));
}
return $succ;
}
return false;
}
function myAdd()
{
//$data['name'] = $name; //中文
//$data['hp_max'] = $hp_max;
//$data['hp_growth'] = $hp_growth;
//$data['hp_start'] = $hp_start;
//$data['mp_max'] = $mp_max;
//$data['mp_growth'] = $mp_growth;
//$data['mp_start'] = $mp_start;
//$data['attack_max'] = $attack_max;
//$data['attack_growth'] = $attack_growth;
//$data['attack_start'] = $attack_start;
//$data['defense_max'] = $defense_max;
//$data['defense_growth'] = $defense_growth;
//$data['defense_start'] = $defense_start;
//$data['hp_5s_max'] = $hp_5s_max;
//$data['hp_5s_growth'] = $hp_5s_growth;
//$data['hp_5s_start'] = $hp_5s_start;
//$data['mp_5s_max'] = $mp_5s_max;
//$data['mp_5s_growth'] = $mp_5s_growth;
//$data['mp_5s_start'] = $mp_5s_start;
//$data['attack_speed_max'] = $attack_speed_max;
//$data['attack_range'] = $attack_range; //远程
//$data['role_main'] = $role_main; //法师
//$data['role_assist'] = $role_assist; //坦克
//$data['birthdate'] = $birthdate; //日期
}
function myUpdate()
{
}
function myRDelete()
{
}
myAdd();
$searh = myLolSearch('');
print_r($searh);
myUpdate();
myRDelete();