I'm using a php loop on my website. I'm trying to randomly add a class "current" to a div inside this loop. I know how to do it using jQuery but I'd liek to use php to achieve this. here is my loop :
" style="background: url() no-repeat center center fixed" >
I'd like to add the "current" class randomly to the "background_directors" div.
can anybody help me with this ?