Implode

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

  1. ZackyVN

    ZackyVN Silverfish

    Messages:
    24
    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:
    593
    Remove the second line. Implode is not helpful in this case.
     
  3. PotatoeTheDev

    PotatoeTheDev Witch

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

    ZackyVN Silverfish

    Messages:
    24
    I found the solution
    Just use this code
    PHP:
                $reason implode(" "$args);
                
    $worte explode(" "$reason);
    unset(
    $worte[0]);
      
    $reason implode(" "$worte);
     

Share This Page

  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.