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

how to save a array in a config

Discussion in 'Help' started by Rafmex, Mar 29, 2021.

  1. Rafmex

    Rafmex Creeper

    Messages:
    5
    GitHub:
    rafmexhd
    how do i save an array in a config like this:
    Code:
    array:
      - 1
      - 2
      - 3
    
     
    Last edited: Mar 29, 2021
  2. Primus

    Primus Zombie Pigman

    Messages:
    749
    PHP:
    (new Config('file.yml'))->set('array', [123]);
     
    Rafmex likes this.
  3. Rafmex

    Rafmex Creeper

    Messages:
    5
    GitHub:
    rafmexhd
    thanks
     
  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.