using explode
| From: | Jason Pruim | Date: | Mon, 05 May 2008 19:04:35 +0000 |
| Subject: | using explode | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-273923@lists.php.net to get a copy of this message | ||
Hi everyone,
I am wondering if I can write this cleaner?
$weightExplode = explode(".", $totalWeight);
$explodetest = ".";
$explodetest .= $weightExplode[1];
$explodetest = $explodetest*16;
I'm hoping I've missed something... Basically I just need to include the "." in $weightExplode[1] before I multiply it by 16. That's the only part that is confusing me right now...
Any ideas?
--
Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424-9337
www.raoset.com
japruim@raoset.com