edw519
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
2984 ms·
- 6661.▲
- 6662.▲
- 6663.▲
- 6664.▲
- 6665.▲
- 6666.▲
- 6667.▲
- 6668.▲
- 6669.▲
- 6670.▲
Too much code. Too many "if" statements that have to be executed every time. Try: <?php
function getRatingImage($rating)
{
$vals = ['zero','half','one','one_half','two','two_half','three','three_half','four','four_half','fi - 6671.▲
- 6672.▲
- 6673.▲
- 6674.▲
- 6675.▲
- 6676.▲
- 6677.▲
- 6678.▲
- 6679.▲
- 6680.▲
- 6681.▲
- 6682.▲
- 6683.▲
- 6684.▲
- 6685.▲
- 6686.▲
- 6687.▲
- 6688.▲
- 6689.▲
- 6690.▲
More ›