Testimonals from Google
”){ for($j=0;$j<$qft;$j++){ //LIST OF PARAMETERS YOU NEED TO PRINT IN YOUR HTML $a1['result']['reviews'][$j]['profile_photo_url']; //For Reviewers Image $a1['result']['reviews'][$j]['author_name']; //For Reviewers Name $a1['result']['reviews'][$j]['relative_time_description'] ; //For Review Relative Timmings $a1['result']['reviews'][$j]['rating']; //For Rating Given by Reviewer $a1['result']['reviews'][$j]['text']; //For Review Text $ratingHTML = ''; for ($x = 1; $x <= 5; $x++) { if($a1['result']['reviews'][$j]['rating'] >= $x){ $ratingHTML .= ‘‘; } else { $ratingHTML .= ‘‘; } } echo ‘
‘.$a1[‘result’][‘reviews’][$j][‘text’].’
‘.$ratingHTML.’
Review left ‘.$a1[‘result’][‘reviews’][$j][‘relative_time_description’].’
‘; } } ?>