当前位置: 首页>>代码示例>>PHP>>正文


PHP interPool::getTeamInfoForecaster方法代码示例

本文整理汇总了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
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:menu_contextuel.php

示例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);
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:joueur_nhl_hist.php


注:本文中的interPool::getTeamInfoForecaster方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。