1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Resolved] Decoding Xenforo Conversations Recipients

Discussion in 'XenForo Development Discussions' started by zekrose, Feb 20, 2015.

  1. zekrose

    zekrose Member

    Hello ! I'm wondering how to get variables from this :
    ---> ["recipients"]=> string(65) "a:1:{i:17;a:2:{s:7:"user_id";i:17;s:8:"username";s:7:"zekrose";}}" <--- ?
    I would like to get variables from this even if there are xxx variables in that string... And if possible to get them, before asking why, it's for getting all last conversations. Thanks in advance ! =)
  2. Xon

    Xon Well-Known Member

    Use php's unserialize function to transform that into an array.
  3. zekrose

    zekrose Member

    thanks =)
    i'm gonna try it =)
    Xon likes this.

Share This Page