Jump to content

Sunnyisles

New Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Sunnyisles

  1. Hi
    Can someone help me with this code?

    <?php
    //DOLLAR//
    $json_dolar=llamar_api("https://mercados.ambito.com//dolar/informal/variacion");
            $dolar=$json_dolar;
            $compra=$dolar->compra;
            $venta=$dolar->venta;
            $variacion=$dolar->variacion;
            $fecha=$dolar->fecha;
            $var2=$dolar->class-variacion;
    ?>

    This is OK
    <?php echo ($compra); ?>

    This is Not, probably 'cause de Hyphen
    <?php echo ($class-variacion); ?>

    Thanks

  2. Yo are right, thanks!

    $json_nba=llamar_api("http://data.nba.com/data/10s/prod/v1/2021/teams/1610612748/schedule.json");
    $nextgame=$json_nba->league->lastStandardGamePlayedIndex+1;
    $game=$json_nba->league->standard[$nextgame]->gameUrlCode;
    $time=$json_nba->league->standard[$nextgame]->startTimeEastern;

    <?php echo "$game[6]$game[7]/$game[4]$game[5] $game[9]$game[10]$game[11] - $game[12]$game[13]$game[14]";?>

  3. Hi, can someone please help me to simplify this? Thanks
     

    $time=$json_nba->league->standard[$nextgame]->startTimeEastern;
    $string = $game;

    <?php echo $string[6]; echo $string[7];?>/<?php echo $string[4]; echo $string[5];?> <?php echo $string[9]; echo $string[10]; echo $string[11];?>-<?php echo $string[12]; echo $string[13]; echo $string[14];?>

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.