note 35871 rejected from function.array by vincent
| From: | vincent@php.net | Date: | Wed, 17 Sep 2003 18:34:56 +0000 |
| Subject: | note 35871 rejected from function.array by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56650@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster@windowsforums.net
----
Basically i'm making a function to display items like so...
function displayRating($rating)
{
// function action here
}
where the $rating variable is will refer to the rating (0 to 5). I have this code for my rating
images...
$rating0 = "<img src=\"http://www.windowsforums.net/images/rating0.gif\">";
$rating1 = "<img src=\"http://www.windowsforums.net/images/rating1.gif\">";
$rating2 = "<img src=\"http://www.windowsforums.net/images/rating2.gif\">";
$rating3 = "<img src=\"http://www.windowsforums.net/images/rating3.gif\">";
$rating4 = "<img src=\"http://www.windowsforums.net/images/rating4.gif\">";
$rating5 = "<img src=\"http://www.windowsforums.net/images/rating5.gif\">";
So I want to put this into the function but I don't know how.