function getEstrelas($numero_estrelas, $nome_hidden_estrelas){ $retorno = ""; $i=0; if ($nome_hidden_estrelas == ""){ for ($i=0;$i<=4;$i++){ if ($numero_estrelas<=$i){$retorno .= "";} else{$retorno .= "";} } } else{ if ($numero_estrelas == 0){ $retorno .= ""; $retorno .= ""; $retorno .= ""; $retorno .= ""; $retorno .= ""; } elseif ($numero_estrelas == 1){ $retorno .= ""; $retorno .= ""; $retorno .= ""; $retorno .= ""; $retorno .= ""; } elseif ($numero_estrelas == 2){ $retorno .= ""; $retorno .= ""; $retorno .= ""; $retorno .= ""; $retorno .= ""; } elseif ($numero_estrelas == 3){ $retorno .= ""; $retorno .= ""; $retorno .= ""; $retorno .= ""; $retorno .= ""; } elseif ($numero_estrelas == 4){ $retorno .= ""; $retorno .= ""; $retorno .= ""; $retorno .= ""; $retorno .= ""; } elseif ($numero_estrelas == 5){ $retorno .= ""; $retorno .= ""; $retorno .= ""; $retorno .= ""; $retorno .= ""; } $retorno .= ""; } return $retorno; } ?>