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

Implode

Discussion in 'Development' started by ZackyVN, Nov 24, 2018.

  1. ZackyVN

    ZackyVN Baby Zombie

    Messages:
    150
    Hello i am having some trouble with implode
    I have a code like this
    PHP:
                  $reason $args[1];
                  
    $reason implode(" "$args);
    It didnt have any errors but when i type
    /hgkick ZackyVNTM Test
    It showed this

    Hệ thống HG > Bạn đã bị kick khỏi máy chủ city vì ZackyVNTM Test
    I only want it show the Args[1] Not both
    Can someone help me plz?
     
  2. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    Remove the second line. Implode is not helpful in this case.
     
  3. TwistedAsylumMC

    TwistedAsylumMC Slime

    Messages:
    96
    GitHub:
    twistedasylummc
    You are trying to implode a string, remove $reason = $args[1]; line
     
  4. ZackyVN

    ZackyVN Baby Zombie

    Messages:
    150
    I found the solution
    Just use this code
    PHP:
                $reason implode(" "$args);
                
    $worte explode(" "$reason);
    unset(
    $worte[0]);
      
    $reason implode(" "$worte);
     
  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.