<?php$result = $pageRank->GetPR($url);switch($result){ case "0": echo '<img src='pr0.jpg' />'; break; case "1": echo '<img src='pr1.jpg' />'; break; //etc..... default: echo '<img src='def.jpg' />';}?>