note 60193 deleted from function.list by tularis
| From: | tularis@php.net | Date: | Thu, 29 Dec 2005 14:39:12 +0000 |
| Subject: | note 60193 deleted from function.list by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-100934@lists.php.net to get a copy of this message | ||
Note Submitter: john_200111 at msn dot com
Reason: useless
----
you can do a simple calculation aswell
<?
// whos payed
$info = array(
array('John', 54),
array('Neil', 20)
);
foreach($info as $d){
$howmany++;
list($name, $money) = $d;
$calc += $money;
}
// how many people have payed
$amount = ($calc);
// Below Dont Neeed Changing
$needed = (intval(86-$amount));
echo "<center><font color='#FFFFFF'>".
"We Need <strong>£$needed</strong> Please Help Donate.".
"<strong> $howmany</strong> People have donated <strong>£".$amount.
"<strong/></font></center>";
?>