note 35871 added to function.array
| From: | webmaster at windowsforums dot net | Date: | Wed, 17 Sep 2003 18:30:34 +0000 |
| Subject: | note 35871 added to function.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-56649@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/function.array.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35871
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35871&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35871&report=yes