View Single Post
Old 2021-08-24, 03:15 AM   #1
jollyhumper
That's what she said
 
jollyhumper's Avatar
 
Join Date: Feb 2012
Location: Norway
Posts: 2,559
Send a message via ICQ to jollyhumper
PHP pulling random line

Hi

Let's say a text document has 30 lines in it.
How could PHP be used to randomly pull one of those lines, each time the web page is built?
I'm looking to pull a random category or partner, or something, on my pages.

PHP is not my strongest side

Thanks anyhow
Jlly
jollyhumper is offline   Reply With Quote