display random background image or effect using php

sometimes we need to get random background image or effects which can be easily obtain using php. below is a small demonstration how to get the random values using php.. $input = array(“jswing”,”easeInQuad”,”easeOutQuad”,”easeInOutQuad”, “easeInCubic”,”easeOutCubic”,”easeInOutCubic”, “easeInQuart”,”easeOutQuart”,”easeInOutQuart”,”easeInSine”, “easeOutSine”,”easeInOutSine”,”easeInExpo”,”easeOutExpo”, “easeInOutExpo”,”easeInQuint”,”easeOutQuint”,”easeInOutQuint”, “easeInCirc”,”easeOutCirc”,”easeInOutCirc”,”easeInElastic”, “easeOutElastic”,”easeInOutElastic”,”easeInBack”,”easeOutBack”, “easeInOutBack”,”easeInBounce”,”easeOutBounce” ,”easeInOutBounce”); $rand_keys = array_rand($input); echo $input[$rand_keys]; if you need 2 random effects then it can … Continue reading