if(!function_exists('qode_loading_spinner_wave')) {
function qode_loading_spinner_wave() {
$html = '';
$html .= '<div class="wave">';
$html .= '<div class="bounce1"></div>';
$html .= '<div class="bounce2"></div>';
$html .= '<div class="bounce3"></div>';
$html .= '</div>';
return $html;
}
}
Above codes is retrieved from a php file that show a loading effect whenever a new page load. I want to add random string from the list by the way in this post: https://stackoverflow.com/a/4730921/4229234
I want to know how to add random string that appear along with the loading effect. I tried to add
$html .= 'echo $randomThings[mt_rand(0,count($randomThings)-1)];';
between main div "wave" tag but it doesn't work. Thanks in advance