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

random sentence from array

Comments in 'Plugin Development' started by Artide, Oct 15, 2015.

  1. Artide
    Offline

    Artide Active Member

    Joined:
    Apr 20, 2015
    Posts:
    214
    Minecraft User:
    Artide5
    How to select random sentence from config array?
  2. MCPEPIG
    Offline

    MCPEPIG Notable Member

    Joined:
    Jun 22, 2014
    Posts:
    349
    Minecraft User:
    MCPEPIG
    PHP:
    $array = array("blahblahblah1""blahblahblah2");
    $randkey array_rand($array1);
    $rand $array[$randkey];
  3. Artide
    Offline

    Artide Active Member

    Joined:
    Apr 20, 2015
    Posts:
    214
    Minecraft User:
    Artide5
    I was struggling for so long trying to find out how and I figured it out before you replied. LMAO

Share This Page

Advertisement