本文整理汇总了PHP中interPool::getTeamInfoForecaster方法的典型用法代码示例。如果您正苦于以下问题:PHP interPool::getTeamInfoForecaster方法的具体用法?PHP interPool::getTeamInfoForecaster怎么用?PHP interPool::getTeamInfoForecaster使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interPool
的用法示例。
在下文中一共展示了interPool::getTeamInfoForecaster方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
if (count($dataA) > 0) {
foreach ($dataA as $item) {
$saison_name = $item["saison"];
$team_name = $item["team"];
$ligue = $item["ligue"];
$games = $item["pj"];
$goals = $item["buts"];
$assists = $item["passes"];
$points = $item["pts"];
if ($games > 0) {
$moyenne = number_format($points / $games, 2, ",", " ");
} else {
$moyenne = "0,00";
}
// info de l'équipe...
$teamInfoA = $pool->getTeamInfoForecaster($team_name, $ligue);
$id_team = $teamInfoA['id'];
$city = $teamInfoA['city'];
$team_name = $teamInfoA['name'];
$abbr = $teamInfoA['abbr'];
$logo = $teamInfoA['logo'];
$siteWeb = $teamInfoA['siteWeb'];
$tip_team = "{$city} {$team_name}";
$tip_team = str_replace("'", "\\'", $tip_team);
if ($tip_team == "" || $tip_team == " " || $tip_team == " ") {
$tip_team = "Not Available";
}
if ($abbr == "") {
$abbr = "N/A";
}
// info ligue
示例2: foreach
foreach ($dataA as $item) {
$saison_name = $item["saison"];
$hdb_team = $item["team"];
$ligue = $item["ligue"];
$games = $item["pj"];
$goals = $item["buts"];
$assists = $item["passes"];
$points = $item["pts"];
if ($games > 0) {
$moyenne = number_format($points / $games, 2, ",", " ");
} else {
$moyenne = "0,00";
}
// info de l'équipe...
//$teamInfoA = $pool->getTeamInfoHDB($hdb_team);
$teamInfoA = $pool->getTeamInfoForecaster($hdb_team, $ligue);
$id_team = $teamInfoA[id];
$city = $teamInfoA[city];
$team_name = $teamInfoA[name];
$abbr = $teamInfoA[abbr];
$logo = $teamInfoA[logo];
$siteWeb = $teamInfoA[siteWeb];
$tip_team = "{$city} {$team_name}";
$tip_team = str_replace("'", "\\'", $tip_team);
if ($abbr == "" && $logo == "") {
$abbr = "N/A";
$tip_team = "Not Available";
}
// info ligue
//$ligueInfoA = $pool->getTeamLigueInfoHDB($ligue);
$ligueInfoA = $pool->getTeamLigueInfoForecaster($ligue);