igorek24
-
Posts
10 -
Joined
-
Last visited
Community Answers
-
igorek24's post in How to display an image for each number was marked as the answer
Here is the result:
public function odometer($carID) { $mileage = str_split($this->pullMileageLastRecord($carID)); $output = ""; foreach ($mileage as $mile) { $output .= "<img src='img/speedo-numbers/$mile.gif' alt='$mile'>"; } return $output; }