1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Get higher int value from config

Discussion in 'Development' started by Enrico Angelon, May 6, 2018.

  1. Enrico Angelon

    Enrico Angelon Spider Jockey

    Messages:
    37
    GitHub:
    herryyt
    The title explain what i'll need. thanks
     
  2. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    No it doesn't.
     
  3. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    The title will never explain all.
     
  4. Enrico Angelon

    Enrico Angelon Spider Jockey

    Messages:
    37
    GitHub:
    herryyt
    simply i wasn't having time to write. anyways, any idea to get higher int value from a config?
     
  5. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    Last edited by a moderator: May 7, 2018
  6. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Please remove the language part of the URL in the future so that the correct language for each user will be displayed. See my edit.
     
    LewBr likes this.
  7. Eduardo

    Eduardo Baby Zombie

    Messages:
    100
    GitHub:
    xBeastMode
    Code:
    values:
      - 2
      - 4
      - 8
    PHP:
    $values $config->get('values'); //must be array else what's the point
    $high max(...$values); //gets highest value from arguments
    echo $high// 8 
     
  8. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    You don't need to use varargs.
     
    Flavius12 likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.