MyBB Tutorials

How to display Random Text/s on each page load [MyBB]

Submitted by Sozin, , Thread ID: 3381

Thread Closed

RE: How to display Random Text/s on each page load [MyBB]

#9
01-05-2015, 03:27 PM
Sozin Wrote:
01-05-2015, 12:45 AM
AndresXZ09 Wrote:
I think that you can replace that with


Code:
$random = array(
1=>"Blabla",
2=>"Blablabla",
3=>"jkdsa",
4=>"bkjsda",
);
$random_stuff = rand(1, count($random));
$_text = $random[$random_stuff];
Idk

In fact, if you use 'text here' it gives an error (or atleast I get an error) you have to use "text"

1. Do not share hidden content.
2. IDK what you actually mean and the count stuff is okay Smile

I just said that's another way to do it Tongue

Users browsing this thread: 3 Guest(s)