Jump to content

igorek24

Members
  • Posts

    10
  • Joined

  • Last visited

Community Answers

  1. 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; }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.